File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 - completed
88
99permissions :
10- pull-requests : write
10+ pull-requests : read
1111 actions : read
1212 contents : read
1313
3636 local pr_author
3737 pr_author=$(gh pr view "$pr_number" --repo "$REPO" --json author --jq '.author.login' 2>/dev/null || echo "")
3838 if [ -z "$pr_author" ]; then
39- echo "::warning::Could not fetch PR author for PR #$pr_number"
39+ pr_author="${{ github.event.workflow_run.actor.login }}"
40+ echo "::warning::Could not fetch PR author for PR #$pr_number; falling back to @$pr_author"
4041 fi
4142 echo "number=$pr_number" >> "$GITHUB_OUTPUT"
4243 echo "author=$pr_author" >> "$GITHUB_OUTPUT"
6869 call-ci-failure-bot :
6970 needs : find-pr
7071 if : ${{ needs.find-pr.outputs.pr_number != '' }}
72+ permissions :
73+ actions : read
74+ contents : read
75+ pull-requests : write
7176 uses : openwisp/openwisp-utils/.github/workflows/reusable-bot-ci-failure.yml@master
7277 with :
7378 pr_number : ${{ needs.find-pr.outputs.pr_number }}
You can’t perform that action at this time.
0 commit comments