File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1919 - " **/pnpm-lock.yaml"
2020 - " **/pom.xml"
2121 workflow_dispatch :
22+ inputs :
23+ ignore_cache :
24+ description : " Ignore the repository cache for this run"
25+ required : false
26+ default : " false"
2227
2328jobs :
2429 analyze :
4045 - name : Run Static Dirty Waters analysis
4146 id : static-analysis
4247 if : steps.check-first-run.outputs.is_first_run == 'true'
43- uses : chains-project/dirty-waters-action@v1.5
48+ uses : chains-project/dirty-waters-action@v1.7
4449 with :
4550 # example args, change as needed
4651 github_token : ${{ secrets.GITHUB_TOKEN }}
@@ -50,11 +55,12 @@ jobs:
5055 comment_on_commit : true # Optional: comments on commits (if not PR/if above is false) if high severity issues are found
5156 latest_commit_sha : ${{ github.sha }}
5257 github_event_before : ${{ github.event.before }}
58+ ignore_cache : ${{ github.event.inputs.ignore_cache }}
5359
5460 - name : Run Differential Dirty Waters Analysis
5561 id : differential-analysis
5662 if : steps.check-first-run.outputs.is_first_run != 'true'
57- uses : chains-project/dirty-waters-action@v1.5
63+ uses : chains-project/dirty-waters-action@v1.7
5864 with :
5965 # example args, change as needed
6066 github_token : ${{ secrets.GITHUB_TOKEN }}
6571 comment_on_commit : true # Optional: comments on commits (if not PR/if above is false) if high severity issues are found
6672 latest_commit_sha : ${{ github.sha }}
6773 github_event_before : ${{ github.event.before }}
74+ ignore_cache : ${{ github.event.inputs.ignore_cache }}
Original file line number Diff line number Diff line change @@ -49,3 +49,4 @@ SSC issues currently checked for:
4949| comment_on_commit | Comment on commit if high severity issues found | No | false |
5050| latest_commit_sha | Latest commit SHA, used to comment on commits | Yes | - |
5151| github_event_before | GitHub event before SHA, to retrieve the previous cache key | Yes | - |
52+ | ignore_cache | Ignore the repository cache for this run (true/false) | No | false |
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ inputs:
7171 github_event_before :
7272 description : ' GitHub event before SHA, to retrieve the previous cache key'
7373 required : true
74+ ignore_cache :
75+ description : ' Ignore the repository cache for this run'
76+ required : false
77+ default : ' false'
7478
7579runs :
7680 using : ' composite'
@@ -92,11 +96,10 @@ runs:
9296 - name : Restore cache
9397 uses : actions/cache/restore@v4
9498 id : restore-cache
99+ if : inputs.ignore_cache != 'true'
95100 with :
96101 path : tool/cache
97102 key : dirty-waters-cache-${{ runner.os }}-${{ inputs.project_repo }}-${{ inputs.github_event_before }}
98- restore-keys : |
99- dirty-waters-cache-${{ runner.os }}-${{ inputs.project_repo }}-
100103
101104 - name : Create cache directory
102105 if : steps.restore-cache.outputs.cache-hit != 'true'
You can’t perform that action at this time.
0 commit comments