Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: workflow to protect the metadata.ts file against manual changes #27989

Closed
wants to merge 1 commit into from
Closed
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
19 changes: 19 additions & 0 deletions .github/workflows/check-region-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Metadata region changes

on:
pull_request:
branches:
- main
paths:
- packages/aws-cdk-lib/region-info/build-tools/metadata.ts

jobs:
changed_files:
runs-on: ubuntu-latest
name: Inspect changed files
steps:
- name: Check for unauthorized requesters
if: ${{ github.event.pull_request.user.login != 'github-actions[bot]' }}
run: |
echo "Only github-actions[bot] is authorized to change the metadata.ts file."
exit 1
Loading