Skip to content

Commit 9c47f1b

Browse files
authored
chore: limit workflow to run by aws-cdk-automation only (#33893)
### Issue # (if applicable) N/A ### Reason for this change Only allow the workflow to run by aws-cdk-automation. ### Description of changes Limit the github author to be aws-cdk-automation. ### Describe any new or updated permissions being added N/A ### Description of how you validated changes N/A ### Checklist - [ ] 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 55bf451 commit 9c47f1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/analytics-metadata-updater.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
update-analytics-metadata:
10-
if: github.repository == 'aws/aws-cdk'
10+
if: github.repository == 'aws/aws-cdk' && github.actor == 'aws-cdk-automation'
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write

.github/workflows/lambda-runtime-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
update-lambda-tests:
9-
if: github.repository == 'aws/aws-cdk'
9+
if: github.repository == 'aws/aws-cdk' && github.actor == 'aws-cdk-automation'
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write

0 commit comments

Comments
 (0)