This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
Enabling Code Sign Validation through 1ES template #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dependabot Approve | |
on: | |
issue_comment: | |
types: [created] | |
permissions: | |
pull-requests: write | |
jobs: | |
dependabotApprove: | |
runs-on: ubuntu-latest | |
# GITHUB_TOKEN change from read-write to read-only on 2024-02-01 requires permissions block | |
# https://docs.opensource.microsoft.com/github/apps/permission-changes/ | |
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs | |
permissions: | |
actions: write | |
contents: read | |
security-events: write | |
if: ${{ github.event.issue.pull_request && github.event.issue.user.login == 'dependabot[bot]' && startswith(github.event.comment.body, '@gitbot dependabot-approve') }} | |
steps: | |
- name: Approve a PR | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.issue.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.SERVICEACCOUNT_PAT }} |