Skip to content

fix(ci): add id-token permission to test job for Depot OIDC - #4

Open
Dong Ma (larainema) wants to merge 1 commit into
mainfrom
fix/test-job-permissions
Open

fix(ci): add id-token permission to test job for Depot OIDC#4
Dong Ma (larainema) wants to merge 1 commit into
mainfrom
fix/test-job-permissions

Conversation

@larainema

Copy link
Copy Markdown
Member

Problem

The test job has been failing with missing API token, please run depot login since it was added in c048ffa (December 14, 2025). This also causes StepSecurity PR #3 and Renovate PR #2 to fail.

Root Cause

The test job uses depot/pull-action to pull the built image from Depot's ephemeral registry, which requires OIDC authentication. However, the job was missing the permissions: id-token: write declaration.

Fix

Add permissions: contents: read and id-token: write to the test job, matching the pattern used by the build job.

The test job uses depot/pull-action which requires OIDC authentication
via id-token: write permission. Without this, the job fails with
'missing API token, please run depot login'.

This has been broken since the test job was added in c048ffa.

Signed-off-by: Dong Ma <dong.ma@vexxhost.com>
Signed-off-by: Dong Ma <winterma.dong@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