Skip to content

Commit d9da737

Browse files
committed
fix(scorecard): enforce granular permissions and add fuzzing placeholder
1 parent bb77979 commit d9da737

19 files changed

Lines changed: 37 additions & 18 deletions

.github/workflows/boj-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ jobs:
1515
# Send a secure trigger to boj-server to build this repository
1616
curl -X POST "http://boj-server.local:7700/cartridges/ssg-mcp/invoke" -H "Content-Type: application/json" -d "{\"repo\": \"${{ github.repository }}\", \"branch\": \"${{ github.ref_name }}\", \"engine\": \"casket\\"}"}
1717
continue-on-error: true
18-
permissions: read-all
18+
permissions:
19+
contents: read

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,4 +308,5 @@ jobs:
308308
git add deploy/
309309
git commit -m "ci: update image tags to ${{ github.sha }}" || exit 0
310310
git push
311-
permissions: read-all
311+
permissions:
312+
contents: read

.github/workflows/codeql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
# the `language` matrix defined below to confirm you have the correct set of
1111
# supported CodeQL languages.
1212
#
13-
permissions: read-all
13+
permissions:
14+
contents: read
1415

1516
name: "CodeQL Advanced"
1617

.github/workflows/container-policy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
permissions: read-all
2+
permissions:
3+
contents: read
34

45
name: Container Policy
56
on: [push, pull_request]

.github/workflows/guix-nix-policy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
permissions: read-all
2+
permissions:
3+
contents: read
34

45
name: Guix/Nix Package Policy
56
on: [push, pull_request]

.github/workflows/hypatia-scan.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
- cron: '0 0 * * 0' # Weekly on Sunday
1212
workflow_dispatch:
1313

14-
permissions: read-all
14+
permissions:
15+
contents: read
1516

1617
jobs:
1718
scan:

.github/workflows/mirror.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
branches: [main]
88
workflow_dispatch:
99

10-
permissions: read-all
10+
permissions:
11+
contents: read
1112

1213
jobs:
1314
mirror-gitlab:

.github/workflows/npm-bun-blocker.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
permissions: read-all
2+
permissions:
3+
contents: read
34

45
name: NPM/Bun Blocker
56
on: [push, pull_request]

.github/workflows/quality.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: PMPL-1.0-or-later
2-
permissions: read-all
2+
permissions:
3+
contents: read
34

45
name: Code Quality
56
on: [push, pull_request]

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,5 @@ jobs:
8080
git add deploy/
8181
git commit -m "release: update manifests for v${{ steps.version.outputs.VERSION }}"
8282
git push origin HEAD:main
83-
permissions: read-all
83+
permissions:
84+
contents: read

0 commit comments

Comments
 (0)