Skip to content

Conversation

GrantBirki
Copy link
Member

@GrantBirki GrantBirki commented Dec 5, 2024

This pull request adds an extra safety check to ensure that the commit returned from the graphql query is the same commit that we originally fetch when looking at the pr.data.head.ref. If these values differ, then we reject the deployment as the commit can not be properly validated. This could occur if there are errors with the PR branch's timeline, someone pushed a commit in-between these two API calls, etc.

This PR also updates logging so that the commit hash which users should deploy in subsequent workflow steps is visible in the logs.

@GrantBirki GrantBirki added the enhancement New feature or request label Dec 5, 2024
@GrantBirki GrantBirki self-assigned this Dec 5, 2024
@GrantBirki GrantBirki merged commit 597c245 into main Dec 5, 2024
4 checks passed
@GrantBirki GrantBirki deleted the commit-improvements branch December 5, 2024 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants