build(deps): Bump @babel/traverse from 7.16.7 to 7.23.3 #84
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
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 }} | |
# TODO: To support this, we must augment the backend to support configPath for User Tokens | |
# - uses: ./ | |
# name: Assume readonly using slyu-standalone-01/saml-to-repo-001/saml-to-nonlive.yml | |
# with: | |
# role: arn:aws:iam::656716386475:role/readonly | |
# configOwner: slyu-standalone-01 | |
# configPath: saml-to-repo-001/saml-to-nonlive.yml | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.SLYU_STANDALONE_01_USER_EMAIL_GH_TOKEN }} | |
# SAML_TO_NONLIVE: true | |
# SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | |
assume-nonlive-with-variables: | |
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 slyo-org-01-readonly-nonlive using slyo-org-01/saml-to/saml-to.yml | |
with: | |
role: arn:aws:iam::758332006924:role/slyo-org-01-readonly-nonlive | |
configOwner: slyo-org-01 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SAML_TO_NONLIVE: true | |
SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | |
assume-nonlive-multiaccount: # TODO: assert account ID | |
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 slyo-org-01-readonly-nonlive in account 931426163329 using slyo-org-01/saml-to/saml-to.yml | |
with: | |
role: arn:aws:iam::931426163329:role/slyo-org-01-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 slyo-org-01-readonly-nonlive in account 013527058470 using slyo-org-01/saml-to/saml-to.yml | |
with: | |
role: arn:aws:iam::013527058470:role/slyo-org-01-readonly-nonlive | |
configOwner: slyo-org-01 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SAML_TO_NONLIVE: true | |
SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | |
assume-multiaccount: # TODO: assert account ID | |
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 slyo-org-01-readonly-live in account 931426163329 using slyo-org-01/saml-to/saml-to.yml | |
with: | |
role: arn:aws:iam::931426163329:role/slyo-org-01-readonly-live | |
configOwner: slyo-org-01 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: ./ | |
name: Assume slyo-org-01-readonly-live in account 013527058470 using slyo-org-01/saml-to/saml-to.yml | |
with: | |
role: arn:aws:iam::013527058470:role/slyo-org-01-readonly-live | |
configOwner: slyo-org-01 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
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 }} | |
# TODO: To support this, we must augment the backend to support configPath for User Tokens | |
# - uses: ./ | |
# name: Assume readonly using slyu-standalone-01/saml-to-repo-001/saml-to-live.yml | |
# with: | |
# role: arn:aws:iam::656716386475:role/readonly | |
# configOwner: slyu-standalone-01 | |
# configPath: saml-to-repo-001/saml-to-live.yml | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.SLYU_STANDALONE_01_USER_EMAIL_GH_TOKEN }} | |
# SAML_TO_NONLIVE: true | |
# SAML_TO_API_KEY: ${{ secrets.NONLIVE_API_KEY }} | |
assume-with-variables: | |
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 slyo-org-01-readonly-nonlive using slyo-org-01/saml-to/saml-to.yml | |
with: | |
role: arn:aws:iam::758332006924:role/slyo-org-01-readonly-live | |
configOwner: slyo-org-01 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
assume-with-profile: | |
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 | |
profile: my-profile | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: aws sts get-caller-identity | |
name: Test using environment variable | |
- run: aws sts get-caller-identity --profile my-profile | |
name: Test using --profile flag |