Skip to content

Commit

Permalink
Prefer GITHUB_REF to CODE_SCANNING_REF
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marcogario committed Nov 16, 2022
1 parent f8b607e commit 0a76b97
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 10 deletions.
25 changes: 21 additions & 4 deletions lib/actions-util.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0a76b97

Please sign in to comment.