Skip to content

Commit

Permalink
Merge pull request coreos#376 from bgilbert/workflow
Browse files Browse the repository at this point in the history
workflows: limit permissions to reading repo contents
  • Loading branch information
Luca Bruno committed Jul 29, 2021
2 parents f239902 + b710183 commit f9f2546
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

env:
GO_TOOLCHAIN: "1.15"
GOPATH: "/opt"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [main]

permissions:
contents: read

env:
# Minimum supported Go toolchain
ACTION_MINIMUM_TOOLCHAIN: "1.12"
Expand Down

0 comments on commit f9f2546

Please sign in to comment.