Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 4 additions & 2 deletions .github/workflows/backport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
types: [closed]

permissions:
contents: write
pull-requests: write
contents: read

jobs:
backport:
name: Backport
permissions:
contents: write
pull-requests: write
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
timeout-minutes: 10
if: >
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ jobs:
- name: Install MkDocs
shell: bash -Eeuo pipefail {0}
run: |
python3 -m pip install --user --break-system-packages mkdocs-material
python3 -m pip install --user --break-system-packages mkdocs-material==9.7.6
echo "$(python3 -m site --user-base)/bin" >> "$GITHUB_PATH"

- name: Build docs site
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/dependabot-auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
pull_request_target:

permissions:
contents: write
pull-requests: write
contents: read

concurrency:
group: dependabot-auto-merge-${{ github.event.pull_request.number }}
Expand All @@ -14,6 +13,9 @@ concurrency:
jobs:
auto-merge:
name: Auto-merge Dependabot PRs
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
if: github.actor == 'dependabot[bot]'
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ on:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: docs
Expand All @@ -29,7 +27,7 @@ jobs:

- name: Install MkDocs
run: |
python3 -m pip install --user --break-system-packages mkdocs-material
python3 -m pip install --user --break-system-packages mkdocs-material==9.7.6
echo "$(python3 -m site --user-base)/bin" >> "$GITHUB_PATH"

- name: Build site
Expand All @@ -45,6 +43,9 @@ jobs:
needs: build
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
timeout-minutes: 5
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ concurrency:
cancel-in-progress: false

permissions:
actions: read # For SLSA provenance
contents: write
packages: write
id-token: write # For cosign keyless signing
contents: read

env:
GO_VERSION: "1.26"
Expand All @@ -26,6 +23,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: write
packages: write
id-token: write
outputs:
hashes: ${{ steps.hash.outputs.hashes }}
digest: ${{ steps.build.outputs.digest }}
Expand Down Expand Up @@ -131,6 +132,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [release]
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ on:

permissions:
contents: read
pull-requests: read
security-events: write

concurrency:
group: security-${{ github.ref }}
Expand All @@ -21,6 +19,9 @@ concurrency:
jobs:
codeql:
name: CodeQL
permissions:
contents: read
security-events: write
runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }}
timeout-minutes: 15
steps:
Expand Down
Loading