Skip to content

Commit

Permalink
chore: Set permissions for GitHub actions (#1890)
Browse files Browse the repository at this point in the history
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.
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
  • Loading branch information
naveensrinivasan committed May 24, 2022
1 parent 02e3069 commit f7876ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ name: Smoke
branches:
- main

permissions:
contents: read

jobs:
linux:
env:
Expand Down

0 comments on commit f7876ab

Please sign in to comment.