[bitnami/charts] Revisit worflow permissions (#17028)

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero
2023-06-06 16:07:17 +02:00
committed by GitHub
parent b47b1cc9aa
commit f6ddfb0e5d

View File

@@ -54,7 +54,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.user.login == 'bitnami_bot' }}
if: ${{ github.event_name != 'issues' && github.event.pull_request.user.login == 'bitnami_bot' }}
# The project API is not efficient and requires several requests to create the project card. For that reason we decided to create
# a card for the automated PRs only when it is needed.
steps:
@@ -67,4 +67,4 @@ jobs:
with:
# Bitnami bot token is required to trigger CI workflows
repo-token: ${{ secrets.BITNAMI_BOT_TOKEN }}
add-labels: verify
add-labels: verify