Skip to content

Merge pull request #4 from snowflakedb/test-oidc #7

Merge pull request #4 from snowflakedb/test-oidc

Merge pull request #4 from snowflakedb/test-oidc #7

Workflow file for this run

name: Fetch Secrets from AWS Secrets Manager
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
fetch-secrets:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Configure AWS credentials from OIDC
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.ROLE_ARN }}
aws-region: ${{ secrets.AWS_REGION }}
- name: Fetch secret from AWS Secrets Manager
id: fetch-secret
run: |
secret_value=$(aws secretsmanager get-secret-value --secret-id ${{ secrets.SECRET_NAME }} --query SecretString --output text)
echo "::set-output name=secret_value::$secret_value"
- name: setup environment
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name : Use the secret
run: |
echo "Using secret in the job: ${{ steps.fetch-secret.outputs.secret_value }}"
git branch

Check failure on line 37 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 37