Skip to content

fix(ci): pass WF_GITHUB_TOKEN to checkout for git fetch and PR creation#97

Open
davidoliv1 wants to merge 1 commit into
mainfrom
fix/s3-checkout-token-for-git-operations
Open

fix(ci): pass WF_GITHUB_TOKEN to checkout for git fetch and PR creation#97
davidoliv1 wants to merge 1 commit into
mainfrom
fix/s3-checkout-token-for-git-operations

Conversation

@davidoliv1

Copy link
Copy Markdown
Collaborator

Summary

  • Passes WF_GITHUB_TOKEN to the actions/checkout step in the S3 multi-environment deploy workflow

Motivation

Steps that run git fetch origin main stage and gh pr create need a checkout with credentials that can access the repository. The default GITHUB_TOKEN may be insufficient for cross-branch git operations and PR creation in reusable workflows.

Changes

  • Add with.token: ${{ secrets.WF_GITHUB_TOKEN }} to the Checkout step in build_and_upload_to_s3

Test plan

  • Trigger stage deploy with create_pr_in_main: true on a consumer repo
  • Confirm git fetch origin main stage succeeds in the workflow logs
  • Confirm PR creation from stage to main works when conditions are met

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