GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Prefer GITHUB_REF to CODE_SCANNING_REF by marcogario · Pull Request #1372 · github/codeql-action

Conversation

@marcogario

@marcogario marcogario commented Nov 16, 2022 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@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
@marcogario
Prefer GITHUB_REF to CODE_SCANNING_REF
0a76b97
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
edoardopirovano
edoardopirovano approved these changes Nov 16, 2022
View reviewed changes
@marcogario
marcogario merged commit c939e66 into main Nov 16, 2022
@marcogario
marcogario deleted the marcogario/prioritize_github_ref branch November 16, 2022 11:03
This was referenced Nov 16, 2022
Merge main into releases/v2 #1375
Merged
Merge releases/v2 into releases/v1 #1377
Merged
@orhantoy orhantoy mentioned this pull request Dec 13, 2022
Add tests for CODE_SCANNING_REF #1435
Merged
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@edoardopirovano edoardopirovano edoardopirovano approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@marcogario @edoardopirovano
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.