Skip to content

ci: declare contents:read on CI workflow#99

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

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

Conversation

@arpitjain099
Copy link
Copy Markdown

Pins ci.yml to contents: read at workflow scope. Both jobs (lint-and-format, test) only check out, install deno + node, and run deno fmt/deno lint and npm install vite@... && npm run build. No GitHub API write.

Defense-in-depth motivation is CVE-2025-30066 on tj-actions/changed-files: a compromised third-party action runs inside the existing job context and exfiltrates the workflow GITHUB_TOKEN via build logs. denoland/setup-deno and actions/setup-node are third-party here, so the cap is meaningful.

Style matches the per-job block in release.yml. YAML validated locally with yaml.safe_load.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
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