diff --git a/.github/workflows/build-publish-image.yml b/.github/workflows/build-publish-image.yml index ee5d563aa..5e32634cf 100644 --- a/.github/workflows/build-publish-image.yml +++ b/.github/workflows/build-publish-image.yml @@ -74,9 +74,9 @@ jobs: TRIVY_USERNAME: ${{ github.actor }} TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} - - name: 'Dispatch tag to e2e test' + - name: 'Dispatch release tag' uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.PAT }} + token: ${{ secrets.GITHUB_TOKEN }} event-type: release-tag client-payload: '{"isRelease": true,"registry": "$${{ env.REGISTRY }}","tag": "v${{ env.IMG_TAG }}"}' diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index fb8009253..6dd55e35d 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -4,6 +4,9 @@ on: workflows: [ "Create, Scan and Publish KAITO image" ] types: [completed] branches: [release-**] + repository_dispatch: + types: [ release-tag ] + branches: [ release-** ] permissions: contents: write