From 6cff542aa88d1ed7c09fdaedbaa9a68162d00475 Mon Sep 17 00:00:00 2001 From: Kirill Sudarushkin Date: Mon, 4 Sep 2023 11:43:06 +0200 Subject: [PATCH] fix: "Fetch metadata" is skipped for "pull_request_target" The step `Fetch metadata` is skipped for a workflow triggered by the `pull_request_target`. The issue was found the first time approximately on the 28th of August. Before the date, there was no issue with the same workflow file. It seems something has been changed in GitHub Workflow implementation, but I couldn't find any evidence. `dependabot-auto-merge.yml` content: ``` name: Dependabot on: pull_request_target permissions: contents: write pull-requests: write jobs: Auto-merge: runs-on: ubuntu-latest steps: - uses: fastify/github-action-merge-dependabot@v3 with: use-github-auto-merge: true target: minor ``` --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8665bcc4..d5060f59 100644 --- a/action.yml +++ b/action.yml @@ -47,7 +47,7 @@ runs: - name: Fetch metadata id: dependabot-metadata uses: dependabot/fetch-metadata@v1 - if: github.event_name == 'pull_request' && (github.actor == 'dependabot[bot]' || inputs.skip-verification == 'true') + if: startsWith(github.event_name, 'pull_request') && (github.actor == 'dependabot[bot]' || inputs.skip-verification == 'true') with: skip-commit-verification: ${{ inputs.skip-commit-verification }} skip-verification : ${{ inputs.skip-verification }}