publish: repository AUDIENCE variable missing for the OIDC registry token #4
Labels
No labels
NaNs
area/dsh
area/forgejo
area/host
area/security
bootcamp
needs-operator
note
priority/later
priority/next
priority/now
type/bug
type/task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
dsh-plugins/dsh-kaggle#4
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened
v0.1.0is tagged (5236f85), the Forgejo release page exists, and the npmjs job skipped cleanly (noNPMJS_TOKEN). The Forgejo registry publish failed in run #775 / job #1152:publish.ymlprefers the authorized-integration OIDC token (enable-openid-connect: true+${{ vars.AUDIENCE }}) and only falls back toNPM_TOKEN. A new repository does not inherit either fromdsh-plugins/dsh-colab, so the tag cannot publish yet. The workflow itself is correct and the tests passed (61/61 in that run).Operator action
Pick one, same as the working
dsh-colabsetup:AUDIENCE(Settings → Actions → Variables) to the authorized-integration audienceu:<id>:<uuid>used by the org, and ensure the integration has package write scope. Then re-run the failedpublishworkflow forv0.1.0.NPM_TOKENwith Forgejowrite:package, then re-runpublish.Verification after the fix
pnpm view dsh-kaggle@0.1.0 version --registry https://git.pvlb.dev/api/packages/dsh-plugins/npm/returns0.1.0.dsh plugin --profile web add --registry ... dsh-kaggle@0.1.0installs from the registry (the linked checkout already works).Do not force-push or move
v0.1.0.Fixed by the operator: authorized integration is on and the
AUDIENCErepository variable is set. Re-ran the failedpublishworkflow forv0.1.0— success.Verified:
dsh-kaggle@0.1.0, tarballhttps://git.pvlb.dev/api/packages/dsh-plugins/npm/dsh-kaggle/-/0.1.0/dsh-kaggle-0.1.0.tgz.dsh-kaggle@0.1.0(created 2026-11-11T22:15:30Z).Closing.