Skip to content

Commit 836084f

Browse files
chore(ci): fix for auto approve depndabot PR's (#689)
Co-authored-by: semantic-release-bot <[email protected]>
1 parent 05a8af3 commit 836084f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
name: Auto approve dependabot
2-
on: pull_request
2+
3+
# Warning: The pull_request_target event is granted a read/write repository
4+
# token and can access secrets, even when it is triggered from a fork. Although
5+
# the workflow runs in the context of the base of the pull request, you should
6+
# make sure that you do not check out, build, or run untrusted code from the
7+
# pull request with this event. Additionally, any caches share the same scope as
8+
# the base branch, and to help prevent cache poisoning, you should not save the
9+
# cache if there is a possibility that the cache contents were altered.
10+
on: pull_request_target
311

412
jobs:
5-
build:
13+
approve:
14+
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
615
runs-on: ubuntu-latest
716
steps:
817
- uses: hmarr/[email protected]
9-
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
1018
with:
1119
github-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)