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
1+ # SPDX-License-Identifier: PMPL-1.0
22name : CodeQL Security Analysis
33
44on :
@@ -17,7 +17,8 @@ concurrency:
1717 group : ${{ github.workflow }}-${{ github.ref }}
1818 cancel-in-progress : true
1919
20- permissions : read-all
20+ permissions :
21+ contents : read
2122
2223jobs :
2324 analyze :
@@ -29,20 +30,20 @@ jobs:
2930 fail-fast : false
3031 matrix :
3132 include :
32- - language : rust
33+ - language : javascript-typescript
3334 build-mode : none
3435
3536 steps :
3637 - name : Checkout
3738 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3839
3940 - name : Initialize CodeQL
40- uses : github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v3.28.1
41+ uses : github/codeql-action/init@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4142 with :
4243 languages : ${{ matrix.language }}
4344 build-mode : ${{ matrix.build-mode }}
4445
4546 - name : Perform CodeQL Analysis
46- uses : github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v3.28.1
47+ uses : github/codeql-action/analyze@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3
4748 with :
4849 category : " /language:${{ matrix.language }}"
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ concurrency:
1717 group : ${{ github.workflow }}-${{ github.ref }}
1818 cancel-in-progress : true
1919
20- permissions : read-all
20+ permissions :
21+ contents : read
2122
2223jobs :
2324 scorecard :
3839 publish_results : true
3940
4041 - name : Upload SARIF
41- uses : github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4
42+ uses : github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4
4243 with :
4344 sarif_file : results.sarif
4445
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
@@ -14,7 +15,8 @@ concurrency:
1415 group : ${{ github.workflow }}-${{ github.ref }}
1516 cancel-in-progress : true
1617
17- permissions : read-all
18+ permissions :
19+ contents : read
1820
1921jobs :
2022 analysis :
@@ -26,14 +28,14 @@ jobs:
2628 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2729 with :
2830 persist-credentials : false
29-
31+
3032 - name : Run Scorecard
31- uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
33+ uses : ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.3.1
3234 with :
3335 results_file : results.sarif
3436 results_format : sarif
35-
37+
3638 - name : Upload results
37- uses : github/codeql-action/upload-sarif@868e2ea5641bfa2e2af1f144664178b4c5575fab # v3
39+ uses : github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v3.31.8
3840 with :
3941 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
@@ -15,13 +15,14 @@ concurrency:
1515 group : ${{ github.workflow }}-${{ github.ref }}
1616 cancel-in-progress : true
1717
18- permissions : read-all
18+ permissions :
19+ contents : read
1920
2021jobs :
2122 trufflehog :
2223 runs-on : ubuntu-latest
2324 steps :
24- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
2526 with :
2627 fetch-depth : 0 # Full history for scanning
2728
3536 gitleaks :
3637 runs-on : ubuntu-latest
3738 steps :
38- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
3940 with :
4041 fetch-depth : 0
4142
4849 rust-secrets :
4950 runs-on : ubuntu-latest
5051 steps :
51- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
52+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
5253
5354 - name : Check for hardcoded secrets in Rust
5455 run : |
You can’t perform that action at this time.
0 commit comments