Skip to content

ci: declare contents:read on End-to-end API Tests workflow#2421

Open
arpitjain099 wants to merge 1 commit into
adobe:mainfrom
arpitjain099:chore/e2e-tests-permissions
Open

ci: declare contents:read on End-to-end API Tests workflow#2421
arpitjain099 wants to merge 1 commit into
adobe:mainfrom
arpitjain099:chore/e2e-tests-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Pins e2e-tests.yaml to contents: read at workflow scope. The job checks out (with persist-credentials: false), sets up Node, configures git auth via MYSTICAT_DATA_SERVICE_REPO_READ_TOKEN, runs npm ci and npm run test-e2e. Authentication for the data-service repo is via an external PAT, not the workflow GITHUB_TOKEN, so contents: read is sufficient.

Defense-in-depth motivation is CVE-2025-30066: a compromised third-party action runs inside the existing job context and exfiltrates the workflow GITHUB_TOKEN via build logs. The cap bounds the blast radius.

Style matches the workflow-level block already in ci.yaml. 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