Skip to content

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 AbhiPrasad and Lms24 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
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