diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 14e8c85..6e4f87c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -10,9 +10,11 @@ on: jobs: cd: name: CD - uses: access-nri/build-cd/.github/workflows/cd.yml@v3 + uses: access-nri/build-cd/.github/workflows/cd.yml@v4 with: model: ${{ vars.NAME }} permissions: contents: write + # Required because later workflows also handle on.pull_request trigger + pull-requests: write secrets: inherit diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55a7a14..f104db3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,7 @@ jobs: if: >- (github.event_name == 'pull_request' && github.event.action != 'closed') || (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!redeploy')) - uses: access-nri/build-cd/.github/workflows/ci.yml@v3 + uses: access-nri/build-cd/.github/workflows/ci.yml@v4 with: model: ${{ vars.NAME }} pr: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }} @@ -40,7 +40,7 @@ jobs: # This job is responsible for handling Command Comments like # `!bump` during an open PR if: github.event_name == 'issue_comment' - uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v3 + uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v4 with: model: ${{ vars.NAME }} permissions: @@ -53,7 +53,7 @@ jobs: # This job is responsible for cleaning up the Prereleases after a # PR is closed if: github.event_name == 'pull_request' && github.event.action == 'closed' - uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v3 + uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v4 with: - model: ${{ vars.NAME }} + root-sbd: ${{ vars.NAME }} secrets: inherit # inherit GitHub Deployment environment secrets