Skip to content

Update GitHub Actions workflow to use OpenID Connect #6

Update GitHub Actions workflow to use OpenID Connect

Update GitHub Actions workflow to use OpenID Connect #6

Workflow file for this run

name: Main
on:
push:
branches:
- '*'
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch: ~
permissions:
id-tokens: write

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

View workflow run for this annotation

GitHub Actions / Main

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 12, Col: 3): Unexpected value 'id-tokens' .github/workflows/main.yml (Line: 22, Col: 9): 'uses' is already defined
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: Build and publish artifacts
steps:
- name: Checkout
uses: actions/checkout@v4
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::985752656544:role/reporting-github-actions
role-session-name: reporting-github-actions
aws-region: us-west-2
- name: Create application bundle
uses: Safecast/github-actions/bundle-application@v1
with:
app: reporting
s3_bucket: elasticbeanstalk-us-west-2-985752656544