Skip to content

Conversation

@cbraynor
Copy link
Contributor

@cbraynor cbraynor commented Sep 22, 2020

This allows CodeQL bundles pre-included in the hosted runners to be used instead of the latest version if:

  • There is only one version in the tool cache
  • The version has been marked as pinned (related)
  • No explicit version has been provided with the tools flag (it will be honored)
  • The tools flag is not the specific literal latest (which will force using the latest version)

Merge / deployment checklist

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

Chris Raynor added 2 commits September 22, 2020 14:38
To save time downloading the CodeQL bundle we're pre-downloading it into the
hosted Actions runner, but because the release schedule is different there may
be some version drift. This change allows a different version of the bundle
to be used than the default if a version isn't explicitly specified, there's
only one version downloaded, and it's been marked as a 'pinned-version' -
otherwise it reverts to the prior behavior.
@cbraynor cbraynor marked this pull request as ready for review September 22, 2020 14:06
Copy link
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I didn't get to reviewing this yesterday like I say I would.

Code changes LGTM. Couple of comments about the test workflows, but nothing major.

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.

3 participants