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 :
@@ -37,12 +38,12 @@ jobs:
3738 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3839
3940 - name : Initialize CodeQL
40- uses : github/codeql-action/init@38697555549f1db7851b81482ff19f1fa5c4fedc # 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@38697555549f1db7851b81482ff19f1fa5c4fedc # 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 3939 publish_results : true
4040
4141 - name : Upload SARIF
42- uses : github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v4
42+ uses : github/codeql-action/upload-sarif@c6f931105cb2c34c8f901cc885ba1e2e259cf745 # v4
4343 with :
4444 sarif_file : results.sarif
4545
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 :
@@ -15,7 +15,8 @@ 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 analysis :
3536 results_format : sarif
3637
3738 - name : Upload results
38- uses : github/codeql-action/upload-sarif@38697555549f1db7851b81482ff19f1fa5c4fedc # v3.31.8
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,12 +22,12 @@ jobs:
2222 trufflehog :
2323 runs-on : ubuntu-latest
2424 steps :
25- - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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@586f66d7886cd0b037c7c245d4a6e34ef357ab10 # 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
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