Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/security-guardian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@ on:
pull_request: {}

jobs:
log-skip:
if: |
startsWith(github.event.pull_request.title, 'chore(release):') ||
startsWith(github.event.pull_request.title, 'chore(merge-back):')
runs-on: ubuntu-latest
steps:
- run: echo "Skipping Security Guardian for release/merge-back PR"
run-security-guardian:
if: |
!startsWith(github.event.pull_request.title, 'chore(release):') &&
!startsWith(github.event.pull_request.title, 'chore(merge-back):')
runs-on: ubuntu-latest
steps:
- name: Skip check for release PRs
if: |
(
startsWith(github.event.pull_request.title, 'chore(release):') ||
startsWith(github.event.pull_request.title, 'chore(merge-back):')
)
run: echo "Skipping Security Guardian for release PR" && exit 0

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to enable full git diff
fetch-depth: 0

- name: Install cfn-guard
run: |
Expand Down
Loading