Skip to content
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

.github: Limit CodeQL workflow to .go files #16389

Merged
merged 2 commits into from Jun 3, 2021

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Jun 1, 2021

See commits for details.

This pull request could be extended to lint-go.yaml but I'm not sure it's worth it currently, given that test is very fast.

@pchaigno pchaigno added area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI. labels Jun 1, 2021
@pchaigno pchaigno requested a review from twpayne June 1, 2021 21:58
@pchaigno pchaigno requested review from a team as code owners June 1, 2021 21:58
@pchaigno pchaigno requested review from nebril and aanm June 1, 2021 21:58
@maintainer-s-little-helper maintainer-s-little-helper bot assigned twpayne, aanm and nebril and unassigned nebril Jun 1, 2021
@pchaigno
Copy link
Member Author

pchaigno commented Jun 2, 2021

I filled #16392 for the ConformanceKind1.19 failure.

CodeQL seems to require that we run the static analysis on the same
branches for push and pull_request triggers. If we don't, it complains
with:

    Please make sure that every branch in on.pull_request is also in
    on.push so that Code Scanning can compare pull requests against
    the state of the base branch.

This commit changes the workflow to run on all stable branches for both
triggers. That will increase the number of times we run that job, but
subsequent commits will restrict that.

Signed-off-by: Paul Chaignon <paul@cilium.io>
This commit changes the CodeQL workflow to only run when the code
touches .go files. That should reduce the number of times we run this
~20min-long workflow.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno requested a review from aanm June 3, 2021 07:44
@aanm aanm merged commit 15cc82a into cilium:master Jun 3, 2021
@pchaigno pchaigno deleted the limit-go-github-workflows branch June 3, 2021 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI-improvement Topic or proposal to improve the Continuous Integration workflow release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants