Skip to content

ci: declare contents:read on CI Tests workflow#29

Open
arpitjain099 wants to merge 1 commit into
linkedin:mainfrom
arpitjain099:chore/ci-permissions
Open

ci: declare contents:read on CI Tests workflow#29
arpitjain099 wants to merge 1 commit into
linkedin:mainfrom
arpitjain099:chore/ci-permissions

Conversation

@arpitjain099

Copy link
Copy Markdown

The CI Tests workflow only runs lint and tests. It doesn't open issues, push commits, attach release artifacts, or invoke OIDC. Right now it inherits whatever permissions: the repo default grants the workflow token.

This patch sets permissions: contents: read at the workflow level so the scope is documented in-file and stays the minimum required by actions/checkout. publish-nightly.yml and publish-release.yml already declare job-level permission blocks (id-token: write for trusted publishing); applying the analogous read-only pattern to ci.yaml closes the gap.

No new dependencies, no behavioural change.

CI Tests runs checkstyle + pytest against the matrix; no GitHub API
calls beyond `actions/checkout`. Pinning the workflow to contents:read
documents that and brings ci.yaml in line with publish-nightly.yml and
publish-release.yml, which already carry job-level permissions blocks.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099 arpitjain099 force-pushed the chore/ci-permissions branch from 98127ad to 4122110 Compare June 10, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant