File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ permissions:
2929
3030jobs :
3131 dependabot-review :
32- if : github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'dependabot[bot]')
32+ if : github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && ( github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'renovate[bot]') )
3333 runs-on : ubuntu-latest
3434 timeout-minutes : 15
3535 steps :
6060 core.setFailed('Could not resolve target pull request context.');
6161 return;
6262 }
63- if (pr.user?.login !== 'dependabot[bot]') {
64- core.setFailed(`Target PR #${pr.number} is not opened by dependabot[bot].`);
63+ const allowedBots = ['dependabot[bot]', 'renovate[bot]'];
64+ if (context.eventName !== 'workflow_dispatch' && !allowedBots.includes(pr.user?.login)) {
65+ core.setFailed(`Target PR #${pr.number} is not opened by an allowed bot. Author: ${pr.user?.login}`);
6566 return;
6667 }
6768
You can’t perform that action at this time.
0 commit comments