Skip to content

update GitHub Actions workflow to use OpenID Connect #7

update GitHub Actions workflow to use OpenID Connect

update GitHub Actions workflow to use OpenID Connect #7

Workflow file for this run

name: Main
on:
push:
branches:
- '*'
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch: ~
permissions:
id-token: write
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

Check failure on line 22 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: 22, Col: 9): 'uses' is already defined
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