-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support AWS credentials provided by aws-actions/configure-aws-credent…
…ials Signed-off-by: Lewis Marshall <[email protected]>
- Loading branch information
Showing
5 changed files
with
81 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
# Test that this action works with AWS credentials provided by the | ||
# aws-actions/configure-aws-credentials action using GitHub OIDC. | ||
# | ||
# See https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect | ||
test-oidc: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
deployments: write | ||
id-token: write | ||
steps: | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-region: eu-west-2 | ||
role-to-assume: arn:aws:iam::884096606738:role/ably-sdk-builds-sdk-upload-action | ||
role-session-name: "${{ github.run_id }}-${{ github.run_number }}" | ||
- uses: actions/checkout@v2 | ||
- name: Create test files for upload | ||
run: | | ||
mkdir -p test | ||
echo "success!" > test/build-output.txt | ||
- name: Test action invocation works | ||
uses: ./ | ||
with: | ||
sourcePath: test | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
artifactName: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters