Least-privilege token
permissions: contents: read
The workflow receives read-only repository content access unless a job narrows or changes it.
Paste a workflow file (e.g. .github/workflows/ci.yml) to get a plain-language summary. Parsing happens entirely in your browser — the workflow is only read as text and is never executed or uploaded.
Workflow YAML
Summary
Name: CI
Triggers: push, pull_request
Top-level permissions: contents: read
Job: build (build, runs on ubuntu-latest)
| Step | Action |
|---|---|
| actions/checkout@v4 | ref: v4 |
| run step | run command |
| run step | run command |
Read triggers, token permissions, and third-party action references together before trusting a workflow.
Least-privilege token
permissions: contents: read
The workflow receives read-only repository content access unless a job narrows or changes it.
Immutable action reference
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
A full commit SHA cannot move like a tag or branch.
Examples and guidance reviewed .