Skip to content

Commit 388591e

Browse files
Copilotjakecoffman
andauthored
Set explicit token permissions on all workflows (#531)
* Initial plan * Set explicit token permissions on all workflows with least privilege Co-authored-by: jakecoffman <886768+jakecoffman@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jakecoffman <886768+jakecoffman@users.noreply.github.com>
1 parent 2b7b27f commit 388591e

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/ci.yml

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

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
attestations: write
9+
contents: write
10+
id-token: write
11+
packages: write
12+
713
jobs:
814
releases-matrix:
915
name: Release Go Binary
1016
runs-on: ubuntu-latest
11-
permissions:
12-
attestations: write
13-
contents: write
14-
id-token: write
15-
packages: write
1617
strategy:
1718
matrix:
1819
goos: [linux, windows, darwin]

.github/workflows/smoke.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
workflow_dispatch:
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
811
env:
912
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1013

0 commit comments

Comments
 (0)