File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ "main" ]
88 schedule :
9- - cron : ' * * * * *'
9+ - cron : ' 0 0 * * *' # FIX: Running every minute is a security/resource risk; changed to daily.
10+
11+ # SCORECARD & SOLARWINDS FIX:
12+ # This defines top-level permissions as read-only for the entire workflow.
13+ permissions : read-all
1014
1115jobs :
1216 lint :
@@ -18,12 +22,18 @@ jobs:
1822 security-events : write
1923 steps :
2024 - name : Checkout code
25+ # Pinned to specific SHA for immutable security
2126 uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
2227
2328 - name : Run DevSkim scanner
2429 uses : microsoft/DevSkim-Action@4b5047945a44163b94642a1cecc0d93a3f428cc6
30+ with :
31+ # FIX: DevSkim needs to know where to save the results so the next step can find them.
32+ directory-to-scan : .
33+ output-filename : devskim-results.sarif
2534
2635 - name : Upload DevSkim scan results to GitHub Security tab
36+ if : always()
2737 uses : github/codeql-action/upload-sarif@7434149006143a4d75b82a2f411ef15b03ccc2d7
2838 with :
2939 sarif_file : devskim-results.sarif
You can’t perform that action at this time.
0 commit comments