Image digest update #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Image digest update | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Weekly | |
| - cron: "0 0 * * 0" | |
| permissions: | |
| contents: read | |
| jobs: | |
| image-update: | |
| name: Image digest update | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # to push the updates | |
| pull-requests: write # to open Pull requests | |
| id-token: write # used to sign the commits using gitsign | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4.2.0 | |
| with: | |
| persist-credentials: false | |
| - name: generate cultivator token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| id: generate-token | |
| with: | |
| app-id: "${{ secrets.EDERA_CULTIVATION_APP_ID }}" | |
| private-key: "${{ secrets.EDERA_CULTIVATION_APP_PRIVATE_KEY }}" | |
| # Scope to what digestabot needs: push the update branch (contents) | |
| # and open the PR (pull-requests). | |
| permission-contents: write | |
| permission-pull-requests: write | |
| - uses: chainguard-dev/digestabot@33d0b78e580aa0c83fe188eb3dfad6611b662479 # a110b65f3d4742d56b5b2b2306de6e2e54306724 | |
| with: | |
| token: "${{ steps.generate-token.outputs.token }}" | |
| signoff: true | |
| author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com> | |
| committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
| labels-for-pr: automated pr, kind/cleanup | |
| branch-for-pr: update-digests | |
| title-for-pr: Update images digests | |
| description-for-pr: Update images digests | |
| commit-message: Update images digests | |
| use-gitsign: false | |
| include-files: '*.yaml,*.yml,Dockerfile*,Containerfile*,Cross.toml,Makefile*,*.sh,*.tf,*.tfvars' |