Add tests for CODE_SCANNING_REF by orhantoy · Pull Request #1435 · github/codeql-action (original) (raw)
We introduced CODE_SCANNING_REF in #1372 and #1368. This env will be used as a fallback if the GITHUB_REF is not set.
This PR adds tests for the changes introduced in the mentioned PRs so we can ensure that we do not break this behavior moving forward.
Question
Are we OK with this being a unit test? That's the approach I went with because GITHUB_REF is also tested like that.