Skip to content

Commit

Permalink
Add permissions to parent workflows (#3845)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamirkamara authored Feb 8, 2024
1 parent d080e11 commit fab7bc3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy_tre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
name: "Deploy main"
if: github.ref == 'refs/heads/main'
uses: ./.github/workflows/deploy_tre_reusable.yml
permissions:
checks: write
with:
ciGitRef: ${{ github.ref }}
e2eTestsCustomSelector: >-
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy_tre_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
if: ${{ github.ref != 'refs/heads/main' }}
needs: [prepare-not-main]
uses: ./.github/workflows/deploy_tre_reusable.yml
permissions:
checks: write
with:
ciGitRef: ${{ github.ref }}
prHeadSha: ${{ github.sha }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr_comment_bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ jobs:
needs.pr_comment.outputs.command == 'run-tests-shared-services'
name: Deploy PR
uses: ./.github/workflows/deploy_tre_reusable.yml
permissions:
checks: write
with:
prRef: ${{ needs.pr_comment.outputs.prRef }}
prHeadSha: ${{ needs.pr_comment.outputs.prHeadSha }}
Expand Down

0 comments on commit fab7bc3

Please sign in to comment.