Skip to content

Commit 7a490bc

Browse files
committed
ci: Add id-token permissions to support WIF
Grant workflow-level `id-token: write` in release.yaml and pull_request.yaml so the jobs calling extenda/actions/* can request an OIDC token from GitHub. The release job already re-declared it alongside `contents: write`; job-level blocks replace rather than merge, so that one stays as-is. The extenda wrappers pick their auth mode from the contents of the service-account-key value -- either a legacy `private_key` JSON key or a `workload_identity_provider` federation config. SECRET_AUTH currently holds a legacy key, so this permission is groundwork only. The migration completes when SECRET_AUTH is swapped to a WIF cred-config on the GCP side, which also needs the WIF principal to hold the Secret Manager roles the current service account has. The commonpom 4.0.3+ prerequisite does not apply here: this repo has no io.extenda.maven:commonpom parent since #86, and the Maven deploy authenticates to Maven Central with the MAVEN_CENTRAL_* and GPG secrets rather than to GCP.
1 parent 93c0a01 commit 7a490bc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
branches: [ master ]
55
types: [ opened, synchronize, reopened ]
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
env:
812
MAVEN_INIT: 'false'
913

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches: [ master ]
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
env:
812
MAVEN_INIT: 'false'
913

0 commit comments

Comments
 (0)