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: MPL-2.0-or-later
2- name : CodeQL
1+ # SPDX-License-Identifier: PMPL-1.0
2+ name : CodeQL Security Analysis
3+
34on :
45 push :
5- branches : [main]
6+ branches : [main, master ]
67 pull_request :
7- branches : [main]
8+ branches : [main, master ]
89 schedule :
9- - cron : " 0 6 * * 1"
10+ - cron : ' 0 6 * * 1'
11+
1012# Estate guardrail: cancel superseded runs so re-pushes / rebased PR
1113# updates do not pile up queued runs against the shared account-wide
1214# Actions concurrency pool. Applied only to read-only check workflows
@@ -17,29 +19,31 @@ concurrency:
1719
1820permissions :
1921 contents : read
22+
2023jobs :
2124 analyze :
22- name : Analyze
2325 runs-on : ubuntu-latest
2426 permissions :
25- actions : read
2627 contents : read
2728 security-events : write
2829 strategy :
2930 fail-fast : false
3031 matrix :
31- language : [actions]
32+ include :
33+ - language : javascript-typescript
34+ build-mode : none
35+
3236 steps :
3337 - name : Checkout
34- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
38+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+
3540 - name : Initialize CodeQL
36- uses : github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v3
41+ uses : github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
3742 with :
3843 languages : ${{ matrix.language }}
39- - name : Autobuild
40- uses : github/codeql-action/autobuild@c10b8064de6f491fea524254123dbe5e09572f13 # v3
44+ build-mode : ${{ matrix.build-mode }}
45+
4146 - name : Perform CodeQL Analysis
42- uses : github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v3
47+ uses : github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4348 with :
4449 category : " /language:${{ matrix.language }}"
45-
Original file line number Diff line number Diff line change 1- # SPDX-License-Identifier: MPL-2 .0-or-later
1+ # SPDX-License-Identifier: PMPL-1 .0-or-later
22# Prevention workflow - runs OpenSSF Scorecard and fails on low scores
33name : OpenSSF Scorecard Enforcer
44
2727 security-events : write
2828 id-token : write # For OIDC
2929 steps :
30- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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@c10b8064de6f491fea524254123dbe5e09572f13 # 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 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 :
3636 results_format : sarif
3737
3838 - name : Upload results
39- uses : github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # 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: MPL-2.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
2727 fetch-depth : 0 # Full history for scanning
2828
2929 - name : TruffleHog Secret Scan
30- uses : trufflesecurity/trufflehog@6bd2d14f7a4bc1e569fa3550efa7ec632a4fa67b # 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".
You can’t perform that action at this time.
0 commit comments