From c735bb0d3f5339b9fd5328ec5c1303516cadc224 Mon Sep 17 00:00:00 2001 From: James Carnegie Date: Thu, 25 Jul 2024 16:15:35 +0100 Subject: [PATCH] feat: roll out updates on release (#100) * feat: roll out updates on release * Use app token. Fix repo --- .github/workflows/release.yml | 24 ++++++++++++++++++++++++ go.mod | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d465206 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,24 @@ +name: release +on: + release: + types: [published] +jobs: + trigger_attest_update: + name: Update attest lib - ALL + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Generate GitHub App Token + id: app-token + uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1.10.3 + with: + app-id: ${{ vars.ATTEST_RELEASE_APP_ID }} + private-key: ${{ secrets.ATTEST_RELEASE_APP_PRIVATE_KEY }} + repositories: "attest-actions" + - name: Send repository_dispatch event + uses: peter-evans/repository-dispatch@v3.0.0 + with: + token: ${{ steps.app-token.outputs.token }} + event-type: update_attest_all + repository: docker/attest-actions + client-payload: '{"attest_version": "${{ github.ref_name }}"}' diff --git a/go.mod b/go.mod index 60743de..753f171 100644 --- a/go.mod +++ b/go.mod @@ -31,7 +31,7 @@ require ( ) // fork of a fork (in case it goes away) with changes to support ArtifactType (https://github.com/google/go-containerregistry/pull/1931) -replace github.com/google/go-containerregistry v0.20.1 => github.com/kipz/go-containerregistry v0.0.0-20240722163910-ebe90246535d +replace github.com/google/go-containerregistry => github.com/kipz/go-containerregistry v0.0.0-20240722163910-ebe90246535d require ( cloud.google.com/go v0.115.0 // indirect