Skip to content

Commit f9f2546

Browse files
author
Luca Bruno
authored
Merge pull request #376 from bgilbert/workflow
workflows: limit permissions to reading repo contents
2 parents f239902 + b710183 commit f9f2546

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/containers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
pull_request:
88
branches: [main]
99

10+
permissions:
11+
contents: read
12+
1013
env:
1114
GO_TOOLCHAIN: "1.15"
1215
GOPATH: "/opt"

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
# Minimum supported Go toolchain
1114
ACTION_MINIMUM_TOOLCHAIN: "1.12"

0 commit comments

Comments
 (0)