Skip to content

Commit 174bcc0

Browse files
[StepSecurity] ci: Harden GitHub Actions in codeql-analysis.yml (#89)
1 parent f4712ec commit 174bcc0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ on:
1414
# The branches below must be a subset of the branches above
1515
branches: [ master ]
1616

17+
permissions: # added using https://github.com/step-security/secure-workflows
18+
contents: read
19+
1720
jobs:
1821
analyze:
22+
permissions:
23+
actions: read # for github/codeql-action/init to get workflow details
24+
contents: read # for actions/checkout to fetch code
25+
security-events: write # for github/codeql-action/autobuild to send a status report
1926
name: Analyze
2027
runs-on: ubuntu-latest
2128

0 commit comments

Comments
 (0)