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

Prefer GITHUB_REF to CODE_SCANNING_REF #1372

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

marcogario
Copy link
Contributor

@marcogario marcogario commented Nov 16, 2022

Given that the GITHUB_REF is a protected variable, we want to prefer it to CODE_SCANNING_REF. This should prevent accidentally overwriting these values.

The logic is a bit more involved, as I think it makes sense to raise the error about GITHUB_REF not being set, rather than mentioning CODE_SCANNING_REF if both are not set.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary. N/A
  • Confirm the changelog has been updated if necessary. N/A

@marcogario marcogario marked this pull request as ready for review November 16, 2022 09:30
@marcogario marcogario requested a review from a team as a code owner November 16, 2022 09:30
@marcogario marcogario force-pushed the marcogario/prioritize_github_ref branch from 003b83f to a151a3e Compare November 16, 2022 09:44
Given that the GITHUB_REF is a protected variable, we want to prefer it to
CODE_SCANNING_REF. This should prevent accidentally overwriting these values.
The logic is a bit more involved, as I think it makes sense to raise the error
about GITHUB_REF not being set, rather than mentioning CODE_SCANNING_REF if
both are not set.
@marcogario marcogario force-pushed the marcogario/prioritize_github_ref branch from a151a3e to 0a76b97 Compare November 16, 2022 09:49
@marcogario marcogario merged commit c939e66 into main Nov 16, 2022
@marcogario marcogario deleted the marcogario/prioritize_github_ref branch November 16, 2022 11:03
@orhantoy orhantoy mentioned this pull request Dec 13, 2022
3 tasks
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.

2 participants