-
Notifications
You must be signed in to change notification settings - Fork 463
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
Update CodeQL actions to v3 #7966
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasn't it pinned to commit for security reasons?
It was but I don't think it works well for the above reasons. It's a controversial thing. |
I also think it might be paranoid, but it is a company level policy? @yevh |
@rubo @LukaszRozmej The current codeql action already using v3 (this is tag version) and there are no any major changes between 2.19.0(pinned in the action) and 2.20.0 (latest). You can check it here: https://github.com/github/codeql-cli-binaries/releases |
First, the version is not apparent from commit hashes, especially in this case, where the commit tag is v2 while GitHub recommendations refer to v3. This is a good example of how using commit hashes can be confusing and complicate maintenance. Second, we don't automatically get updates for actions, including bug fixes and security updates. There have been 14 updates to this GitHub action since the commit we hardcoded. This said, the disadvantages of using commit hashes outweigh the possible advantages if any. |
@rubo the updates it's important. One of the option that maybe used here is updating the pinned action with Dependabot(it automatically create a PR). We are currently working on making security related action a shared one. I think this will also help solve the update issue. Anyway, this is not yet a policy, but more than a recommendation. |
Changes
security-and-quality
suiteTypes of changes
What types of changes does your code introduce?
Testing
Requires testing