Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Image digest update #505

Image digest update

Image digest update #505

Workflow file for this run

# Copyright 2022 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
name: Image digest update
on:
workflow_dispatch:
schedule:
# distroles ran on 0 0 * * * lets run this one hour after
- cron: "0 1 * * *"
jobs:
image-update:
name: Image digest update
runs-on: ubuntu-latest
if: ${{ github.repository_owner }} == 'chainguard-dev'
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: chainguard-dev/octo-sts-action@6177b4481c00308b3839969c3eca88c96a91775f # v1.0.0
id: octo-sts
with:
scope: ${{ github.repository }}
identity: digestabot
- uses: chainguard-dev/digestabot@7dc10a1f7fb063b5130b1116f26a5a0880c2a00f # v1.1.0
id: digest-bot
with:
token: ${{ steps.octo-sts.outputs.token }}
- run: echo "PR number ${{ steps.digest-bot.outputs.pull_request_number }}"
- name: Enable auto-merge
if: ${{ steps.digest-bot.outputs.pull_request_number != '' }}
run: gh pr merge --auto --squash "https://github.com/${{ github.repository }}/pull/${{ steps.digest-bot.outputs.pull_request_number }}"
env:
GITHUB_TOKEN: ${{ steps.octo-sts.outputs.token }}