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- # CodeQL disabled - no scannable source code detected
1+ # SPDX-License-Identifier: PMPL-1.0
32name : CodeQL Security Analysis
43
54on :
6- workflow_dispatch : # Manual trigger only
5+ push :
6+ branches : [main, master]
7+ pull_request :
8+ branches : [main, master]
9+ schedule :
10+ - cron : ' 0 6 * * 1'
711
812# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
913# updates do not pile up queued runs against the shared account-wide
@@ -17,8 +21,29 @@ permissions:
1721 contents : read
1822
1923jobs :
20- placeholder :
24+ analyze :
2125 runs-on : ubuntu-latest
22- if : false
26+ permissions :
27+ contents : read
28+ security-events : write
29+ strategy :
30+ fail-fast : false
31+ matrix :
32+ include :
33+ - language : javascript-typescript
34+ build-mode : none
35+
2336 steps :
24- - run : echo "Enable when source code is added"
37+ - name : Checkout
38+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+
40+ - name : Initialize CodeQL
41+ uses : github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
42+ with :
43+ languages : ${{ matrix.language }}
44+ build-mode : ${{ matrix.build-mode }}
45+
46+ - name : Perform CodeQL Analysis
47+ uses : github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
48+ with :
49+ category : " /language:${{ matrix.language }}"
Original file line number Diff line number Diff line change @@ -27,19 +27,19 @@ jobs:
2727 security-events : write
2828 id-token : write # For OIDC
2929 steps :
30- - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4
30+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3131 with :
3232 persist-credentials : false
3333
3434 - name : Run Scorecard
35- uses : ossf/scorecard-action@dc50aa0d6266d87a76935ff2d34e030454be3285 # v2.4.3
35+ uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
3636 with :
3737 results_file : results.sarif
3838 results_format : sarif
3939 publish_results : true
4040
4141 - name : Upload SARIF
42- uses : github/codeql-action/upload-sarif@c793b717bc78562f491db7b0e93a3a178b099162 # 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@0c366fd6a839edf440554fa01a7085ccba70ac98 # 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 :
55 branches : [main, master]
66 schedule :
7- - cron : ' 0 4 * * 0'
7+ - cron : ' 0 4 * * *'
8+ workflow_dispatch :
89
910# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
1011# updates do not pile up queued runs against the shared account-wide
@@ -24,17 +25,17 @@ jobs:
2425 security-events : write
2526 id-token : write
2627 steps :
27- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
28+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2829 with :
2930 persist-credentials : false
30-
31+
3132 - name : Run Scorecard
32- uses : ossf/scorecard-action@dc50aa0d6266d87a76935ff2d34e030454be3285
33+ uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.3.1
3334 with :
3435 results_file : results.sarif
3536 results_format : sarif
36-
37+
3738 - name : Upload results
38- uses : github/codeql-action/upload-sarif@b2f9ef845756500b97acbdaf5c1dd4e9c1d15734 # v3.32.5
39+ uses : github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.31.8
3940 with :
4041 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,19 +22,21 @@ jobs:
2222 trufflehog :
2323 runs-on : ubuntu-latest
2424 steps :
25- - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # 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@8a8ef8526528d8a4ff3e2c90be08e25ef8efbd9b # v3
30+ uses : trufflesecurity/trufflehog@6c05c4a00b91aa542267d8e32a8254774799d68d # v3
3131 with :
32- extra_args : --only-verified --fail
32+ # The v3 action injects --fail automatically on pull_request events.
33+ # Passing --fail here triggers "flag 'fail' cannot be repeated".
34+ extra_args : --only-verified
3335
3436 gitleaks :
3537 runs-on : ubuntu-latest
3638 steps :
37- - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4
39+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
3840 with :
3941 fetch-depth : 0
4042
4749 rust-secrets :
4850 runs-on : ubuntu-latest
4951 steps :
50- - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4
52+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
5153
5254 - name : Check for hardcoded secrets in Rust
5355 run : |
You can’t perform that action at this time.
0 commit comments