From 8c7316deb6bd39739ddb086db5b11ada0baac9c8 Mon Sep 17 00:00:00 2001 From: Hugo Bollon Date: Wed, 11 Sep 2024 13:48:10 +0200 Subject: [PATCH] ci(dep): add missing permissions and second attempt to fix condition --- .github/workflows/dependabot_pr.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dependabot_pr.yml b/.github/workflows/dependabot_pr.yml index 9d3c1cf1..7c8d5147 100644 --- a/.github/workflows/dependabot_pr.yml +++ b/.github/workflows/dependabot_pr.yml @@ -4,11 +4,18 @@ on: pull_request: types: - opened + - synchronize + - reopened + - labeled + +permissions: + contents: write + pull-requests: write jobs: dependabot: runs-on: ubuntu-latest - if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.issue.labels.*.name, 'dependencies') + if: github.actor == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies') steps: - name: Dependabot metadata