Skip to content

Commit 542b4c4

Browse files
committed
Add read permissions for contents in GitHub Actions workflow
1 parent 3a839c3 commit 542b4c4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/go.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
go-versions:
1414
name: Lookup Go versions
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
1618
outputs:
1719
matrix: ${{ steps.versions.outputs.matrix }}
1820
steps:
@@ -23,6 +25,8 @@ jobs:
2325
build:
2426
name: Test
2527
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
2630
needs: go-versions
2731
strategy:
2832
matrix:

0 commit comments

Comments
 (0)