Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set explicit token permissions on all workflows with least privilege
Co-authored-by: jakecoffman <886768+jakecoffman@users.noreply.github.com>
  • Loading branch information
Copilot and jakecoffman committed Oct 31, 2025
commit 4ff18f45e99b8bb41c848e771862ab6b82802b44
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
merge_group:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ on:
release:
types: [published]

permissions:
attestations: write
contents: write
id-token: write
packages: write

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
permissions:
attestations: write
contents: write
id-token: write
packages: write
strategy:
matrix:
goos: [linux, windows, darwin]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
workflow_dispatch:
pull_request:

permissions:
contents: read

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
Loading