Skip to content

ci: Fix CodeQL workflow config #14117

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

Merged
merged 2 commits into from
Oct 29, 2024
Merged

ci: Fix CodeQL workflow config #14117

merged 2 commits into from
Oct 29, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Oct 29, 2024

Reverts #14109 and re-implements this differently.

Actually, the problem was dependabot merging to develop (so the fix would not have caught that anyhow), + this was incorrect syntax (oops) as we had ignore-branches and branches, which does not work.

Now, instead we just run this always but check if this is a push from dependabot, which hopefully works better.

See https://github.com/getsentry/sentry-javascript/actions/runs/11570166519

@mydea mydea requested review from Lms24 and AbhiPrasad October 29, 2024 09:07
@mydea mydea self-assigned this Oct 29, 2024
@mydea mydea changed the title Fn/revert codeql ci: Fix CodeQL workflow config Oct 29, 2024
@@ -36,6 +33,8 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
# Skip for pushes from dependabot, which is not supported
if: github.event_name == 'pull_request' || github.actor != 'dependabot[bot]'
Copy link
Member

Choose a reason for hiding this comment

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

Wait, we skip pull requests? Should this be a &&?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, the job runs always if it is a pull request, or else if it is not from dependabot :D this is the condition to run, not to skip ;)

Copy link
Member

Choose a reason for hiding this comment

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

Ah right. Forgot how the conditional jobs work and got confused by the comment. Thanks!

@mydea mydea enabled auto-merge (squash) October 29, 2024 09:21
@mydea mydea merged commit 8f65bf7 into develop Oct 29, 2024
150 checks passed
@mydea mydea deleted the fn/revert-codeql branch October 29, 2024 09:22
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