Skip to content

Commit c9601cd

Browse files
committed
gh: Lower ossf compiler scanner permissions
1 parent 728cafb commit c9601cd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/ossf-compiler-flags-scanner.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,20 @@ on:
2727
- cron: 0 1 * * *
2828

2929
permissions:
30-
# Required to upload SARIF file to CodeQL.
31-
# See: https://github.com/github/codeql-action/issues/2117
32-
actions: read
33-
# Require writing security events to upload SARIF file to security tab
34-
security-events: write
35-
# Only need to read contents
3630
contents: read
3731

3832
jobs:
3933
schedule-scan:
4034
runs-on: ubuntu-latest
4135
if: github.repository == 'erlang/otp'
36+
permissions:
37+
# Required to upload SARIF file to CodeQL.
38+
# See: https://github.com/github/codeql-action/issues/2117
39+
actions: read
40+
# Require writing security events to upload SARIF file to security tab
41+
security-events: write
42+
# Only need to read contents
43+
contents: read
4244
steps:
4345
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # ratchet:actions/[email protected]
4446
- name: Create initial pre-release tar

0 commit comments

Comments
 (0)