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
10 changes: 8 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Checks

on:
- push
- pull_request
push:
pull_request:
workflow_dispatch:

# Minimal file-level permissions for checks: read repository contents for linting/tests
permissions:
contents: read

jobs:
detect-quota:
# Probe the hosted runner (same flavor as the original try job) so we
# can decide whether to use a hosted runner or fall back to
# self-hosted. The job should fail if quota is exhausted.
permissions: {}
runs-on: ubuntu-slim
steps:
- name: Quota probe
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ name: Docker CI
on:
push:
pull_request:
workflow_dispatch:

# Minimize permissions for Docker CI; only allow read access to repo contents
# and package write for pushing images to GHCR.
permissions:
contents: read
packages: write
attestations: write
id-token: write

env:
REGISTRY: ghcr.io
Expand All @@ -19,6 +20,7 @@ jobs:
# Probe the hosted runner to decide whether to use hosted runners or
# fall back to self-hosted. Use the same runner flavor as the original
# try job.
permissions: {}
runs-on: ubuntu-slim
steps:
- name: Quota probe
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
push:
branches:
- main
workflow_dispatch:

# Minimize default permissions; grant elevated permissions only to the
# `release_please` job below.
permissions:
contents: write
issues: write
Expand All @@ -19,6 +22,7 @@ jobs:
detect-quota:
# Probe the hosted runner flavor used by release steps so we can fall
# back if necessary.
permissions: {}
runs-on: ubuntu-slim
steps:
- name: Quota probe
Expand Down