File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: PMPL-1.0-or-later
2- # Presswerk — CodeQL workflow analysis (Rust not supported; scans Actions only)
1+ # SPDX-License-Identifier: PMPL-1.0
32name : CodeQL Security Analysis
43
54on :
65 push :
7- branches : [main]
6+ branches : [main, master ]
87 pull_request :
9- branches : [main]
8+ branches : [main, master ]
109 schedule :
1110 - cron : ' 0 6 * * 1'
1211
@@ -31,20 +30,20 @@ jobs:
3130 fail-fast : false
3231 matrix :
3332 include :
34- - language : actions
33+ - language : javascript-typescript
3534 build-mode : none
3635
3736 steps :
3837 - name : Checkout
39- uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
38+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4039
4140 - name : Initialize CodeQL
42- uses : github/codeql-action/init@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3
41+ uses : github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4342 with :
4443 languages : ${{ matrix.language }}
4544 build-mode : ${{ matrix.build-mode }}
4645
4746 - name : Perform CodeQL Analysis
48- uses : github/codeql-action/analyze@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3
47+ uses : github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4948 with :
5049 category : " /language:${{ matrix.language }}"
Original file line number Diff line number Diff line change 2727 security-events : write
2828 id-token : write # For OIDC
2929 steps :
30- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
30+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131 with :
3232 persist-credentials : false
3333
3939 publish_results : true
4040
4141 - name : Upload SARIF
42- uses : github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3
42+ uses : github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4
4343 with :
4444 sarif_file : results.sarif
4545
6262 check-critical :
6363 runs-on : ubuntu-latest
6464 steps :
65- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
65+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666
6767 - name : Check SECURITY.md exists
6868 run : |
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: PMPL-1.0-or-later
1+ # SPDX-License-Identifier: PMPL-1.0
22name : OSSF Scorecard
33on :
44 push :
2525 security-events : write
2626 id-token : write
2727 steps :
28- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
28+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929 with :
3030 persist-credentials : false
3131
3636 results_format : sarif
3737
3838 - name : Upload results
39- uses : github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3.31.8
39+ uses : github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.31.8
4040 with :
4141 sarif_file : results.sarif
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: PMPL-1.0-or-later
1+ # SPDX-License-Identifier: PMPL-1.0
22# Prevention workflow - scans for hardcoded secrets before they reach main
33name : Secret Scanner
44
@@ -22,12 +22,12 @@ jobs:
2222 trufflehog :
2323 runs-on : ubuntu-latest
2424 steps :
25- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
25+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
2626 with :
2727 fetch-depth : 0 # Full history for scanning
2828
2929 - name : TruffleHog Secret Scan
30- uses : trufflesecurity/trufflehog@116e7171542d2f1dad8810f00dcfacbe0b809183 # v3
30+ uses : trufflesecurity/trufflehog@6c05c4a00b91aa542267d8e32a8254774799d68d # v3
3131 with :
3232 # The v3 action injects --fail automatically on pull_request events.
3333 # Passing --fail here triggers "flag 'fail' cannot be repeated".
3636 gitleaks :
3737 runs-on : ubuntu-latest
3838 steps :
39- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
39+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
4040 with :
4141 fetch-depth : 0
4242
4949 rust-secrets :
5050 runs-on : ubuntu-latest
5151 steps :
52- - uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
52+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
5353
5454 - name : Check for hardcoded secrets in Rust
5555 run : |
You can’t perform that action at this time.
0 commit comments