Skip to content

Commit 8d98655

Browse files
naveensrinivasansebastianbergmann
authored andcommitted
chore: Set permissions for GitHub actions
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: naveen <[email protected]>
1 parent 3b92399 commit 8d98655

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ name: CI
99
env:
1010
COMPOSER_ROOT_VERSION: "8.5-dev"
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
coding-guidelines:
1417
name: Coding Guidelines

0 commit comments

Comments
 (0)