Skip to content

follow up to oidc#128

Merged
derekmisler merged 1 commit intodocker:mainfrom
derekmisler:follow-up-to-oidc
Apr 14, 2026
Merged

follow up to oidc#128
derekmisler merged 1 commit intodocker:mainfrom
derekmisler:follow-up-to-oidc

Conversation

@derekmisler
Copy link
Copy Markdown
Contributor

@derekmisler derekmisler commented Apr 14, 2026

Related Issues

Closes: https://github.com/docker/gordon/issues/383

Summary

Follow-up fixes after the OIDC migration. Addresses release workflow auth issues, adds backward-compatible deprecated secret inputs for callers still passing the old credentials, and fixes a JS scoping bug in the org-membership check.

Release workflow (release.yml)

  • Added fetch-depth: 0 to checkout so version calculation has full git history
  • Configured git remote URL with the GitHub App token so the release job can push tags/commits

Reusable review workflow (review-pr.yml)

  • Added CAGENT_ORG_MEMBERSHIP_TOKEN, CAGENT_REVIEWER_APP_ID, and CAGENT_REVIEWER_APP_PRIVATE_KEY as deprecated secret inputs — keeps callers from failing while they migrate to OIDC
  • Fixed username variable scoping: was declared as const at the top then reassigned inside an if/else, which would throw at runtime. Now only assigned within each branch
  • Fixed bare PR_AUTHOR reference → process.env.PR_AUTHOR

Self-review workflow (self-review-pr.yml)

  • Switched uses: from a pinned SHA (docker/cagent-action/review-pr@f4853b...) to ./review-pr so the self-review workflow always tests against the local version of the action

Tip

Comment /review to trigger the PR Reviewer agent for automated feedback.
Comment /describe to generate a PR description.

Signed-off-by: Derek Misler <derek.misler@docker.com>
@derekmisler derekmisler self-assigned this Apr 14, 2026
@derekmisler derekmisler requested a review from a team April 14, 2026 15:14
@derekmisler derekmisler marked this pull request as ready for review April 14, 2026 15:14
@derekmisler derekmisler enabled auto-merge (squash) April 14, 2026 15:14
@derekmisler derekmisler merged commit 9a2f06e into docker:main Apr 14, 2026
18 checks passed
with:
repository: docker/cagent-action
ref: ${{ github.workflow_sha }}
fetch-depth: 0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0? not 1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because i need the tags for this step. fetch-depth: 1 doesn't fetch tags, unfortunately

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.

3 participants