Skip to content

Commit

Permalink
Skip workflow runs the right way (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome authored Sep 17, 2024
1 parent 17bba40 commit db5a17a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
packages: read # required to fetch internal or private CodeQL packs

if: ${{ github.event_name != 'merge_group' }}
strategy:
fail-fast: false
matrix:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ permissions:

jobs:
dependency-review:
name: Dependency Review
runs-on: ubuntu-22.04
permissions:
contents: read # for actions/checkout
pull-requests: write # for actions/dependency-review-action to post comments
if: ${{ github.event_name != 'merge_group' }}
steps:
- name: Skip on Merge Group
run: exit 0 # Artifically flag as successful, as this is a required check for branch protection.
if: github.event_name == 'merge_group'

- name: Checkout Repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

Expand Down

0 comments on commit db5a17a

Please sign in to comment.