Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update release workflows to use a PAT #121

Merged

Conversation

philasmar
Copy link
Contributor

Description of changes:

  • Updates the release workflows to use a PAT for the GitHub Automation User
  • Fix the current release workflow which fails when merging dev to main due to our branch protection rules.
  • Fix the Release PR which currently doesn't run PR checks

Note: the 2 repository secrets RELEASE_WORKFLOW_ACCESS_TOKEN_ROLE_ARN and RELEASE_WORKFLOW_ACCESS_TOKEN_NAME have not yet been created. They will be created once we update the release infra.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

# Checkout a full clone of the repo
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: '0'
token: ${{ env.AWS_SECRET_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Might just be for my understanding, but is this the same as AWS_SECRET on line 37? The names don't match?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. The github action that fetches the secret from secret manager creates environment variables that have "AWS_SECRET" as a prefix. Since the actual secret is in json format with the key being "token". The resulting environment variable becomes "AWS_SECRET_TOKEN".

@aws-sdk-dotnet-automation aws-sdk-dotnet-automation merged commit e0143f3 into dev Apr 2, 2024
6 checks passed
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.

4 participants