Skip to content

Commit 7e4431d

Browse files
chore(security-guardian): security-guardian to skip release pr (#34386)
### Issue # (if applicable) Closes #<issue number here>. None ### Reason for this change security-guardian runs and fails for chore(release) pr like [PR-34383](#34383). the PRs which are a part of this release would have already gone through the checks. ### Description of changes checks if the PR title has `chore(release)` and skips execution ### Describe any new or updated permissions being added ### Description of how you validated changes ### Checklist - [ x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 639b883 commit 7e4431d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/security-guardian.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ on:
55
jobs:
66
run-security-guardian:
77
runs-on: ubuntu-latest
8-
steps:
8+
steps:
9+
- name: Skip check for release PRs
10+
if: |
11+
(
12+
startsWith(github.event.pull_request.title, 'chore(release):') ||
13+
startsWith(github.event.pull_request.title, 'chore(merge-back):')
14+
)
15+
run: echo "Skipping Security Guardian for release PR" && exit 0
16+
917
- name: Checkout
1018
uses: actions/checkout@v4
1119
with:

0 commit comments

Comments
 (0)