Skip to content

Commit a64d440

Browse files
authored
chore: update workflows to use sha instead of ref (#33442)
### Issue # (if applicable) n/a ### Reason for this change To adhere to best security practices ### Description of changes Update workflows to use sha instead of ref ### 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 29d1945 commit a64d440

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:
19-
ref: ${{ github.event.pull_request.head.ref }}
19+
ref: ${{ github.event.pull_request.head.sha }}
2020

2121
- name: Set up Node
2222
uses: actions/setup-node@v4
@@ -51,4 +51,4 @@ jobs:
5151
git commit -m "chore: update analytics metadata blueprints"
5252
git push origin ${{ github.event.pull_request.head.ref }}
5353
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515
with:
16-
ref: ${{ github.event.pull_request.head.ref }}
16+
ref: ${{ github.event.pull_request.head.sha }}
1717

1818
- name: Set up Node
1919
uses: actions/setup-node@v4
@@ -48,4 +48,4 @@ jobs:
4848
git commit -m "chore: update lambda runtime integration tests"
4949
git push origin ${{ github.event.pull_request.head.ref }}
5050
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/request-cli-integ-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v4
1515
with:
16-
ref: ${{ github.event.pull_request.head.ref }}
16+
ref: ${{ github.event.pull_request.head.sha }}
1717
repository: ${{ github.event.pull_request.head.repo.full_name }}
1818
fetch-depth: 0
1919
persist-credentials: false

0 commit comments

Comments
 (0)