-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:saml-to/assume-aws-role-action
- Loading branch information
Showing
13 changed files
with
274 additions
and
39 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,124 @@ | ||
name: 'Run Acceptance Tests' | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
assume-nonlive-fail: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn build | ||
- uses: ./ | ||
id: assume_doesnotexist | ||
continue-on-error: true | ||
with: | ||
role: arn:aws:iam::000000000000:role/doesnotexist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SAML_TO_NONLIVE: true | ||
SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | ||
- name: Assume Assertion (Success == Skipped) | ||
if: job.steps.assume_doesnotexist.status == success() | ||
run: exit 1 | ||
assume-fail: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn build | ||
- uses: ./ | ||
id: assume_doesnotexist | ||
continue-on-error: true | ||
with: | ||
role: arn:aws:iam::000000000000:role/doesnotexist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Assume Assertion (Success == Skipped) | ||
if: job.steps.assume_doesnotexist.status == success() | ||
run: exit 1 | ||
|
||
assume-nonlive: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn build | ||
- uses: ./ | ||
name: Assume test-assume-aws-role-action-nonlive using saml-to/saml-to/saml-to.yml | ||
with: | ||
role: arn:aws:iam::580360238192:role/test-assume-aws-role-action-nonlive | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SAML_TO_NONLIVE: true | ||
SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | ||
- uses: ./ | ||
name: Assume readonly-nonlive using slyo-org-01/saml-to/saml-to.yml | ||
with: | ||
role: arn:aws:iam::656716386475:role/readonly-nonlive | ||
configOwner: slyo-org-01 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SAML_TO_NONLIVE: true | ||
SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | ||
- uses: ./ | ||
name: Assume readonly using slyo-org-01/saml-to/saml-to.yml (with provider aws-nonlive) | ||
with: | ||
role: arn:aws:iam::656716386475:role/readonly | ||
configOwner: slyo-org-01 | ||
provider: aws-nonlive | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SAML_TO_NONLIVE: true | ||
SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | ||
|
||
assume: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: 'yarn' | ||
- run: yarn | ||
- run: yarn build | ||
- uses: ./ | ||
name: Assume test-assume-aws-role-action using saml-to/saml-to/saml-to.yml | ||
with: | ||
role: arn:aws:iam::580360238192:role/test-assume-aws-role-action | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: ./ | ||
name: Assume readonly-live using slyo-org-01/saml-to/saml-to.yml | ||
with: | ||
role: arn:aws:iam::656716386475:role/readonly-live | ||
configOwner: slyo-org-01 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: ./ | ||
name: Assume readonly using slyo-org-01/saml-to/saml-to.yml (with provider aws) | ||
with: | ||
role: arn:aws:iam::656716386475:role/readonly | ||
configOwner: slyo-org-01 | ||
provider: aws | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"1.0.51-0"} | ||
{"version":"1.0.58-7"} |
Oops, something went wrong.