Skip to content

Commit 59c4d61

Browse files
committed
ci: redistribute canonical secret-scanner.yml (concurrency-cancel guard) (Refs hyperpolymath/standards#122)
1 parent ef50cb8 commit 59c4d61

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/secret-scanner.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
33
name: 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

2021
jobs:
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

@@ -35,7 +36,7 @@ jobs:
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

@@ -48,7 +49,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)