Skip to content

Commit fa2a1be

Browse files
authored
ci: replace hmarr/auto-approve-action with gh CLI (#129)
The hmarr/auto-approve-action is unmaintained (last commit Feb 2024) and stuck on Node.js 20, which GitHub Actions is deprecating on June 16, 2026. Replace it with a direct gh pr review --approve call, which is pre-installed on all runners and has zero supply chain risk. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent 4b4eb49 commit fa2a1be

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/auto-approve.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
with:
3131
egress-policy: audit
3232

33-
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0
33+
- name: Approve PR
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
run: gh pr review --approve "${{ github.event.pull_request.number }}" --repo "${{ github.repository }}"
3437

3538
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
3639
if: github.event.pull_request.user.login != 'patchloom-release[bot]'

0 commit comments

Comments
 (0)