Skip to content

Commit

Permalink
chore: add attest to ci workflow (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
saidsef authored Jun 23, 2024
1 parent 4556b5b commit f55b571
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@ jobs:
version: "latest"
github_token: ${{ github.token }}

attest:
name: attest
runs-on: ubuntu-latest
needs: [tfsec]
permissions:
attestations: write
contents: read
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/attest-build-provenance@v1
with:
subject-path: '*.tf'

caller-identity-check:
if: contains(github.event_name, 'pull_request')
name: Return the IAM user
Expand All @@ -98,7 +113,7 @@ jobs:
auto-approve:
if: contains(github.event_name, 'pull_request')
runs-on: ubuntu-latest
needs: [validate, tfsec, caller-identity-check]
needs: [validate, tfsec, attest, caller-identity-check]
steps:
- name: Auto Approve PR
uses: actions/github-script@v7
Expand Down

0 comments on commit f55b571

Please sign in to comment.