Skip to content

Commit 3fddea2

Browse files
committed
Attempt to restrict permissions
1 parent ad47d9a commit 3fddea2

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/scorecard-scanner.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ jobs:
6363
if: github.repository_owner == 'quantumlib'
6464
name: Run Scorecard analyzer
6565
runs-on: ubuntu-24.04
66-
permissions: write-all
66+
permissions:
67+
actions: read
68+
contents: read
69+
security-events: write
6770
timeout-minutes: 15
6871
steps:
6972
- name: Check out a copy of the git repository

.github/workflows/weekly.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ jobs:
4949
if: github.repository_owner == 'quantumlib'
5050
name: Run periodic open-source vulnerabilities scanner
5151
uses: ./.github/workflows/osv-scanner.yaml
52-
permissions: write-all
52+
permissions:
53+
actions: read
54+
contents: read
55+
security-events: write
5356
with:
5457
reason: '(weekly)'
5558
debug: github.event.inputs.debug
@@ -58,7 +61,10 @@ jobs:
5861
if: github.repository_owner == 'quantumlib'
5962
name: Run periodic Scorecard analysis
6063
uses: ./.github/workflows/scorecard-scanner.yaml
61-
permissions: write-all
64+
permissions:
65+
actions: read
66+
contents: read
67+
security-events: write
6268
secrets: inherit
6369
with:
6470
reason: '(weekly)'

0 commit comments

Comments
 (0)