From fb8f4fd8c4721d5a13be5097f0e50f603d8a7c74 Mon Sep 17 00:00:00 2001 From: Fran Mulero Date: Thu, 6 Jul 2023 14:46:24 +0200 Subject: [PATCH] [bitnami/charts] Fix permissions in license-headers workflow (#17464) Signed-off-by: Fran Mulero --- .github/workflows/license-headers.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/license-headers.yml b/.github/workflows/license-headers.yml index ac8a89e823..f4b78b0bbb 100644 --- a/.github/workflows/license-headers.yml +++ b/.github/workflows/license-headers.yml @@ -3,14 +3,27 @@ --- name: '[License] Check license headers' - on: - pull_request: - + pull_request_target: + types: + - opened + - synchronize + branches: + - main + - bitnami:main +# Remove all permissions by default +permissions: {} jobs: license-headers-linter: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - uses: actions/checkout@v3 + name: Checkout Repository + with: + ref: ${{ github.event.pull_request.head.ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Check license Headers uses: apache/skywalking-eyes/header@v0.4.0