ci: default workflow tokens to read-only contents (#1218)

This commit is contained in:
Jack Amadeo 2026-08-27 06:01:29 -04:00 • committed by GitHub
commit 3501f3e646
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 15 additions and 0 deletions

View file

@ -3,6 +3,9 @@ on:
# Runs workflow when activity on a PR in the workflow's repository occurs. # Runs workflow when activity on a PR in the workflow's repository occurs.
pull_request_target: pull_request_target:
permissions:
contents: read
jobs: jobs:
auto-label: auto-label:
permissions: permissions:

View file

@ -12,6 +12,9 @@ env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
ARTIFACT_DIR: release-artifacts ARTIFACT_DIR: release-artifacts
permissions:
contents: read
jobs: jobs:
commit-lint: commit-lint:
name: Lint Commit Messages name: Lint Commit Messages

View file

@ -8,6 +8,9 @@ on:
schedule: schedule:
- cron: '0 0 * * 1' # Weekly on Monday - cron: '0 0 * * 1' # Weekly on Monday
permissions:
contents: read
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze

View file

@ -14,6 +14,9 @@ concurrency:
env: env:
CONFORMANCE_VERSION: "0.2.0-alpha.10" CONFORMANCE_VERSION: "0.2.0-alpha.10"
permissions:
contents: read
jobs: jobs:
server: server:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -4,6 +4,9 @@ on:
- cron: "0 0 * * *" - cron: "0 0 * * *"
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
jobs: jobs:
stale: stale:
name: Clean Up name: Clean Up