Skip to content

change to oidc

change to oidc #1

name: Build and Push Containers

Check failure on line 1 in .github/workflows/build_containers.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_containers.yml

Invalid workflow file

(Line: 16, Col: 21): Unrecognized named-value: 'variables'. Located at position 1 within expression: variables.ARN
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Assume STS role
uses: aws-actions/configure-aws-credentials@v1
with:
role-arn: ${{ variables.ARN }}
role-session-name: github-actions
oidc-token: ${{ steps.oidc-token.outputs.token}}
- name: Use AWS credentials
run: |
aws secretsmanager get-secret-value --secret-id my-secret --region us-east-1