Skip to content

Commit 0b63856

Browse files
committed
wip: testing
1 parent 3d8bcf3 commit 0b63856

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

.github/workflows/external.yml

-10
This file was deleted.

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test
22
on:
33
push:
44

5+
permissions:
6+
id-token: write
7+
58
jobs:
69
test:
710
runs-on: ubuntu-latest

forge/actions/setup/action.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ runs:
2020
- name: Cache Forge CLI binary
2121
if: inputs.forge_version == 'local'
2222
id: cache-forge
23-
uses: actions/cache@v3
23+
uses: actions/cache@v4
2424
with:
2525
path: /usr/local/bin/forge
2626
key: ${{ runner.os }}-forge-${{ hashFiles('forge/cli/**') }}
@@ -33,6 +33,7 @@ runs:
3333
earthly --artifact ./forge/cli+build/forge /usr/local/bin/forge
3434
3535
- name: Get provider configuration
36+
id: provider
3637
shell: bash
3738
run: |
3839
BP=$(forge blueprint dump .)
@@ -43,5 +44,12 @@ runs:
4344
AWS_ROLE=$(echo "$BP" | jq -r .ci.providers.aws.role)
4445
fi
4546
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 }}

0 commit comments

Comments
 (0)