Skip to content

Commit a59b097

Browse files
authored
chore(ci): remove pinned actions & pkg versions (#3576)
1 parent a5708be commit a59b097

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

Diff for: .github/workflows/bootstrap_region.yml

+15-11
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,23 @@ permissions:
3434
contents: read
3535

3636
jobs:
37-
cdk:
38-
name: Install CDK
37+
bootstrap:
38+
name: Bootstrap Region
3939
runs-on: ubuntu-latest
4040
permissions:
41-
contents: write
4241
id-token: write
4342
environment: layer-${{ inputs.environment }}
4443
steps:
44+
- name: checkout
45+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
46+
with:
47+
ref: ${{ github.sha }}
48+
- name: Setup Node.js
49+
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
50+
with:
51+
node-version: "22"
52+
- name: Setup dependencies
53+
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
4554
- id: credentials
4655
name: AWS Credentials
4756
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
@@ -53,11 +62,6 @@ jobs:
5362
name: Create Workdir
5463
run: |
5564
mkdir -p build/project
56-
- id: cdk-install
57-
name: Install CDK
58-
working-directory: build
59-
run: |
60-
6165
- id: cdk-project
6266
name: CDK Project
6367
working-directory: build/project
@@ -68,8 +72,8 @@ jobs:
6872
copy_layers:
6973
name: Copy Layers
7074
runs-on: ubuntu-latest
75+
needs: bootstrap
7176
permissions:
72-
contents: write
7377
id-token: write
7478
environment: layer-${{ inputs.environment }}
7579
steps:
@@ -90,7 +94,7 @@ jobs:
9094
run: go env
9195
- id: go-install-pkg
9296
name: Install
93-
run: go install github.com/aws-powertools/actions/layer-balancer/cmd/balance@latest
97+
run: go install github.com/aws-powertools/actions/layer-balancer/cmd/balance@@29979bc5339bf54f76a11ac36ff67701986bb0f0
9498
- id: run-balance
9599
name: Run Balance
96-
run: balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name AWSLambdaPowertoolsTypeScriptV2 -dry-run=false
100+
run: balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name AWSLambdaPowertoolsTypeScriptV2 -dry-run=false

0 commit comments

Comments
 (0)