Skip to content

Commit

Permalink
Merge pull request #11749 from mattmoor/update-digestabot
Browse files Browse the repository at this point in the history
Have digestabot utilize Octo STS
  • Loading branch information
mattmoor authored Jan 24, 2024
2 parents 73b84b1 + 213e7b7 commit e16ef39
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .github/chainguard/digestabot.sts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
issuer: https://token.actions.githubusercontent.com
subject: repo:wolfi-dev/os:ref:refs/heads/main
claim_pattern:
job_workflow_ref: wolfi-dev/os/.github/workflows/digestabot.yaml@refs/heads/main

permissions:
contents: write
pull_requests: write
workflows: write
15 changes: 11 additions & 4 deletions .github/workflows/digestabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,18 @@ jobs:
if: github.repository == 'wolfi-dev/os'

permissions:
contents: read
id-token: write
contents: read # To clone the repo
id-token: write # To gitsign and federate

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: chainguard-dev/actions/octo-sts@main
id: octo-sts
with:
scope: ${{ github.repository }}
identity: digestabot

- uses: chainguard-dev/actions/digesta-bot@main
with:
token: ${{ secrets.DIGEST_BOT_WOLFI_PAT }}
token: ${{ steps.octo-sts.outputs.token }}

0 comments on commit e16ef39

Please sign in to comment.