File tree 3 files changed +14
-13
lines changed
3 files changed +14
-13
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Test
2
2
on :
3
3
push :
4
4
5
+ permissions :
6
+ id-token : write
7
+
5
8
jobs :
6
9
test :
7
10
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 20
20
- name : Cache Forge CLI binary
21
21
if : inputs.forge_version == 'local'
22
22
id : cache-forge
23
- uses : actions/cache@v3
23
+ uses : actions/cache@v4
24
24
with :
25
25
path : /usr/local/bin/forge
26
26
key : ${{ runner.os }}-forge-${{ hashFiles('forge/cli/**') }}
33
33
earthly --artifact ./forge/cli+build/forge /usr/local/bin/forge
34
34
35
35
- name : Get provider configuration
36
+ id : provider
36
37
shell : bash
37
38
run : |
38
39
BP=$(forge blueprint dump .)
43
44
AWS_ROLE=$(echo "$BP" | jq -r .ci.providers.aws.role)
44
45
fi
45
46
46
- echo "$AWS_REGION"
47
- echo "$AWS_ROLE"
47
+ echo "aws_region=$AWS_REGION" >> $GITHUB_OUTPUT
48
+ echo "aws_role=$AWS_ROLE" >> $GITHUB_OUTPUT
49
+
50
+ - name : Configure AWS
51
+ uses : aws-actions/configure-aws-credentials@v4
52
+ if : ${{ steps.provider.outputs.aws_region != '' && steps.provider.outputs.aws_role != '' }}
53
+ with :
54
+ aws-region : ${{ steps.provider.outputs.aws_region }}
55
+ role-to-assume : ${{ steps.provider.outputs.aws_role }}
You can’t perform that action at this time.
0 commit comments