Skip to content

chore(ci): migrate to gha-setup-credentials v3 and latest FEDX gha-* actions - #52

Closed
matthewnitschke-wk wants to merge 1 commit into
masterfrom
gha-setup-credentials-v3-4c944bef-2504-4fc7-b7ac-9b93984fb0e7
Closed

matthewnitschke-wk wants to merge 1 commit into
masterfrom
gha-setup-credentials-v3-4c944bef-2504-4fc7-b7ac-9b93984fb0e7

Conversation

@matthewnitschke-wk

Copy link
Copy Markdown

Migrates this repository's GitHub Actions onto gha-setup-credentials v3, following the FEDX migration guide.

What changed

  1. FEDX actions pinned to their latest releasesgha-dart@v3.0.6, gha-ts@v1.0.3,
    gha-semver-audit@v3.0.3, gha-utils@v1.0.3, gha-scip@v1.0.1.

  2. Redundant credential steps removed. Any job that already runs gha-dart/setup-dart or
    gha-ts/setup-node gets its credentials from those actions, so the sibling
    gha-setup-credentials@v2.x step was deleted. Leaving one in place fails with
    unix_listener: cannot bind to path /tmp/ssh_agent.sock: Address already in use.

  3. Remaining gha-setup-credentials@v2.x steps replaced with the v3 opt-in sub-actions that the
    surrounding job appears to need — git always, plus javascript, docker, python, or an explicit
    keys: list where the job shows a matching usage. The JavaScript package manager is taken from the
    commands the job runs, falling back to the repository's lockfile. Any if: condition on the original
    step is carried over to each replacement step. v2 configured everything automatically; v3 configures
    nothing unless asked.

  4. id-token: write added where it was missing — v3 no longer declares the OIDC permission itself,
    and without it jobs fail with Unable to get ACTIONS_ID_TOKEN_REQUEST_URL.

Please review carefully

Step 3 is inferred from what each job visibly does, so it can under- or over-provision. v3 is opt-in, and a job that silently relied on a v2 credential will now fail. Please confirm each affected job has what it needs:

  • Workiva/gha-setup-credentials/docker@v3.0.3 — building, pulling, or pushing images. registry:
    defaults to docker.workiva.net; also supports drydock.workiva.net, drydock-prod.workiva.net,
    dhi.io, and mcr.microsoft.com.
  • Workiva/gha-setup-credentials/python@v3.0.3 — running pip or uv. - Workiva/gha-setup-credentials@v3.0.3 with keys: — reading any Vault-backed variable such as
    FEF_GH_TOKEN, SRC_ACCESS_TOKEN, BTR_JIRA_TOKEN, or LD_ACCESS_TOKEN. These are no longer
    exported automatically, and an unrecognized name fails the action outright.

Any v2-only inputs (disable-ssh, js-package-manager, npmrc, docker-user, vault-url, ...) were dropped, since none of them exist in v3.

Created by Sourcegraph agentic batch change.

Bump FEDX gha-* actions to their latest releases and replace the
monolithic gha-setup-credentials v2 action with the v3 opt-in
sub-actions, adding id-token: write where it was missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant