Skip to content

Commit 681646d

Browse files
authored
chore(ci): pin all 3rd party actions (#1441)
1 parent 51c3b96 commit 681646d

18 files changed

+62
-76
lines changed

.github/workflows/closed-issues-message.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
auto_comment:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: aws-actions/closed-issue-message@v1
9+
- uses: aws-actions/closed-issue-message@36b7048ea77bb834d16e7a7c5b5471ac767a4ca1 # v1.0.0
1010
with:
1111
# These inputs are both required
1212
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/dispatch_analytics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
environment: analytics
3131
steps:
3232
- name: Configure AWS credentials
33-
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef
33+
uses: aws-actions/configure-aws-credentials@e1e17a757e536f70e52b5a12b2e8d1d1c60e04ef # v2.0.0
3434
with:
3535
aws-region: eu-central-1
3636
role-to-assume: ${{ secrets.AWS_ANALYTICS_ROLE_ARN }}

.github/workflows/label_pr_on_title.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
2626
- name: "Label PR based on title"
27-
uses: actions/github-script@v6
27+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
2828
env:
2929
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
3030
PR_TITLE: ${{ needs.get_pr_details.outputs.prTitle }}

.github/workflows/make-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
RELEASE_VERSION: ${{ steps.set-release-version.outputs.RELEASE_VERSION }}
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
1717
with:
1818
# Here `token` is needed to avoid incurring in error GH006 Protected Branch Update Failed,
1919
token: ${{ secrets.GH_PUBLISH_TOKEN }}
2020
# While `fetch-depth` is used to allow the workflow to later commit & push the changes.
2121
fetch-depth: 0
2222
- name: Setup NodeJS
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
2424
with:
2525
node-version: "18"
2626
cache: "npm"

.github/workflows/measure-packages-size.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
# we need first to use the PR number to retrieve the PR SHA number. This means we need three steps to: checkout the repo,
1919
# run a custom script to get the SHA, and then finally checkout the PR branch
2020
- name: Checkout Repo
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
2222
- name: Extract PR details
2323
id: extract_PR_details
24-
uses: actions/github-script@v6
24+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
2525
with:
2626
script: |
2727
const script = require('.github/scripts/get_pr_info.js');
2828
await script({github, context, core});
2929
- name: Checkout PR code
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
3131
with:
3232
ref: ${{ steps.extract_PR_details.outputs.headSHA }}
3333
- name: Packages size report

.github/workflows/on-merge-to-main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout code
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
3030
- name: Update release draft
3131
uses: release-drafter/release-drafter@569eb7ee3a85817ab916c8f8ff03a5bd96c9c83e # v5.23.0
3232
env:
@@ -35,9 +35,9 @@ jobs:
3535
needs: [get_pr_details, update-release-draft]
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
3939
- name: "Label PR related issue for release"
40-
uses: actions/github-script@v6
40+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
4141
env:
4242
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}
4343
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}

.github/workflows/on-workflows-push-pr.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,6 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
1818
- name: Ensure 3rd party workflows have SHA pinned
19-
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@b9ddf6a5153efe6fb94f071c8915175afdce60fa # v2.1.0
20-
with:
21-
# Trusted GitHub Actions and/or organizations
22-
allowlist: |
23-
aws-actions/
24-
actions/stale
25-
actions/checkout
26-
actions/github-script
27-
actions/setup-node
28-
actions/setup-python
29-
actions/upload-artifact
30-
actions/download-artifact
31-
github/codeql-action/init
32-
github/codeql-action/analyze
33-
dependabot/fetch-metadata
19+
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@21991cec25093947ff3f62e4c223df0260c39944 # v2.1.2

.github/workflows/on_opened_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
needs: get_pr_details
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
2323
- name: "Debug workflow_run event"
2424
run: echo "${{ github }}"
2525
- name: "Ensure related issue is present"
26-
uses: actions/github-script@v6
26+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
2727
env:
2828
PR_BODY: ${{ needs.get_pr_details.outputs.prBody }}
2929
PR_NUMBER: ${{ needs.get_pr_details.outputs.prNumber }}

.github/workflows/post-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
env:
2424
RELEASE_VERSION: ${{ inputs.versionNumber }}
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
2727
- name: Update issues related to release
28-
uses: actions/github-script@v6
28+
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
2929
with:
3030
github-token: ${{ secrets.GITHUB_TOKEN }}
3131
script: |

.github/workflows/publish_layer.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ jobs:
3333
if: ${{ (github.event.workflow_run.conclusion == 'success') || (github.event_name == 'workflow_dispatch') }}
3434
steps:
3535
- name: checkout
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
3737
with:
3838
fetch-depth: 0
3939
- name: Setup Node.js
40-
uses: actions/setup-node@v3
40+
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
4141
with:
4242
node-version: "18"
4343
- name: Set release notes tag
@@ -57,7 +57,7 @@ jobs:
5757
- name: Zip output
5858
run: zip -r cdk.out.zip layers/cdk.out
5959
- name: Archive CDK artifacts
60-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
6161
with:
6262
name: cdk-layer-artifact
6363
path: cdk.out.zip

0 commit comments

Comments
 (0)