Skip to content

Commit 16d987d

Browse files
committed
chore(workflows): fix permissions / persist-credentials
Signed-off-by: Steve Beattie <steve.beattie@chainguard.dev>
1 parent 148b3e9 commit 16d987d

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ on:
66
push:
77
branches: ['main']
88

9+
permissions: {}
10+
911
jobs:
1012
build:
1113
name: build
1214
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
1318

1419
steps:
1520
- name: Harden Runner
@@ -18,6 +23,8 @@ jobs:
1823
egress-policy: audit
1924

2025
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
26+
with:
27+
persist-credentials: false
2128
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2229
with:
2330
go-version: '1.20'

.github/workflows/golangci-lint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
egress-policy: audit
2121

2222
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
23+
with:
24+
persist-credentials: false
2325
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
2426
with:
2527
go-version: '1.20'

0 commit comments

Comments
 (0)