Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .github/workflows/smoke-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ concurrency:
group: smoke-tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Least privilege: this workflow only reads the repo and runs untrusted
# PR-authored example code via `make verify`. A read-only token removes the
# write/approve escalation path if that code reaches the persisted credentials.
permissions:
contents: read

jobs:
verify:
runs-on: ubuntu-latest
Expand All @@ -38,6 +44,9 @@ jobs:
with:
# Full history so PR-scoped verify can diff against the base commit.
fetch-depth: 0
# Do not persist GITHUB_TOKEN in .git/config: `make verify` runs
# untrusted PR example code, which must not be able to read the token.
persist-credentials: false

- name: Scope verify to changed examples (pull requests only)
env:
Expand Down
Loading