-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore(release): 2.190.0 #34171
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(release): 2.190.0 #34171
Changes from all commits
d43e829
1d4abcd
78be158
d751b1f
bc39ed2
ff10172
7147e75
c993d34
d04e40f
eb97d2d
c6905c6
81f41b3
baa4a5c
f2c5f26
271e439
c5365a0
9a76fdc
753ed62
615f626
b19eb69
1ab924c
ccd8de7
7d82072
beb42fd
b9758f2
9ffa244
78af355
cd3208c
dff2798
54e8222
c4fd9fd
93313dd
07f1d0a
faee209
3eec60c
73419fa
1c0e03f
47a65db
14cd83b
4c3ed77
f9089b5
c9954f8
4fd27a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: CDK Enums Auto Updater | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
|
||
jobs: | ||
update-l2-enums: | ||
|
@@ -23,6 +25,40 @@ jobs: | |
- name: Install dependencies | ||
run: cd tools/@aws-cdk/enum-updater && yarn install --frozen-lockfile && yarn build | ||
|
||
- name: Update enum static mapping | ||
run: | | ||
cd tools/@aws-cdk/enum-updater | ||
./bin/update-static-enum-mapping | ||
|
||
- name: Check for changes | ||
id: static-mapping-check | ||
run: | | ||
if [[ -n "$(git status --porcelain ./lib/static-enum-mapping.json)" ]]; then | ||
echo "changes=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "changes=false" >> $GITHUB_OUTPUT | ||
fi | ||
|
||
- name: Create PR for static mapping changes | ||
if: steps.static-mapping-check.outputs.changes == 'true' | ||
run: | | ||
git config --global user.name 'aws-cdk-automation' | ||
git config --global user.email '[email protected]' | ||
|
||
# Create a new branch for the module | ||
branchName="enum-update/static-mapping-update" | ||
git checkout -b "$branchName" | ||
|
||
git add . # Add all files changed | ||
git commit -m "chore: update enum static mapping" | ||
git push origin "$branchName" | ||
|
||
gh pr create --title "chore: update enum static mapping" \ | ||
--body "This PR updates the CDK enum mapping file." \ | ||
--base main \ | ||
--head "$branchName" | ||
--label "contribution/core,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test" | ||
|
||
- name: Identify Missing Values and Apply Code Changes | ||
run: | | ||
cd tools/@aws-cdk/enum-updater | ||
|
@@ -40,9 +76,6 @@ jobs: | |
- name: Commit & Push changes | ||
if: steps.git-check.outputs.changes == 'true' | ||
run: | | ||
git config --global user.name 'aws-cdk-automation' | ||
git config --global user.email '[email protected]' | ||
|
||
# Iterate through each module directory that has changes | ||
for module in $(git diff --name-only | grep -E '^packages/(@aws-cdk|aws-cdk-lib)/.*' | sed -E 's|^packages/(@aws-cdk\|aws-cdk-lib)/([^/]+).*|\2|' | sort -u); do | ||
moduleName=$(basename $module) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Security Guardian | ||
on: | ||
pull_request: {} | ||
|
||
jobs: | ||
run-security-guardian: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetches full history | ||
|
||
- name: Get list of changed .template.json files | ||
id: filter_files | ||
run: | | ||
echo "Getting changed CloudFormation templates..." | ||
mkdir -p changed_templates | ||
|
||
git fetch origin main --depth=1 | ||
|
||
base_sha="${{ github.event.pull_request.base.sha }}" | ||
head_sha="${{ github.event.pull_request.head.sha }}" | ||
if [[ -z "$base_sha" ]]; then base_sha=$(git merge-base origin/main HEAD); fi | ||
if [[ -z "$head_sha" ]]; then head_sha=HEAD; fi | ||
|
||
git diff --name-status "$base_sha" "$head_sha" \ | ||
| grep -E '^(A|M)\s+.*\.template\.json$' \ | ||
| awk '{print $2}' > changed_files.txt || true | ||
|
||
while IFS= read -r file; do | ||
if [ -f "$file" ]; then | ||
safe_name=$(echo "$file" | sed 's|/|_|g') | ||
cp "$file" "changed_templates/$safe_name" | ||
else | ||
echo "::warning::Changed file not found in workspace: $file" | ||
fi | ||
done < changed_files.txt | ||
|
||
if [ -s changed_files.txt ]; then | ||
echo "files_changed=true" >> $GITHUB_OUTPUT | ||
else | ||
echo "files_changed=false" >> $GITHUB_OUTPUT | ||
fi | ||
|
||
- name: Install cfn-guard | ||
if: steps.filter_files.outputs.files_changed == 'true' | ||
run: | | ||
mkdir -p $HOME/.local/bin | ||
curl -L -o cfn-guard.tar.gz https://github.com/aws-cloudformation/cloudformation-guard/releases/latest/download/cfn-guard-v3-x86_64-ubuntu-latest.tar.gz | ||
tar -xzf cfn-guard.tar.gz | ||
mv cfn-guard-v3-*/cfn-guard $HOME/.local/bin/cfn-guard | ||
chmod +x $HOME/.local/bin/cfn-guard | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
|
||
- name: Install & Build security-guardian | ||
if: steps.filter_files.outputs.files_changed == 'true' | ||
run: yarn install --frozen-lockfile && cd tools/@aws-cdk/security-guardian && yarn build | ||
|
||
- name: Run cfn-guard if templates changed | ||
if: steps.filter_files.outputs.files_changed == 'true' | ||
uses: ./tools/@aws-cdk/security-guardian | ||
with: | ||
data_directory: './changed_templates' | ||
rule_set_path: './tools/@aws-cdk/security-guardian/rules/trust_scope_rules.guard' | ||
show_summary: 'fail' | ||
output_format: 'single-line-summary' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.