Skip to content

Commit

Permalink
BUG: Add permissions to apply clang format action
Browse files Browse the repository at this point in the history
Attempt to enable the pull request clang format action to work on forked pull
requests.

Background:

- actions/labeler#12
- https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
  • Loading branch information
thewtex committed Aug 24, 2022
1 parent cb4f17f commit 5b0fd8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/apply-clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Apply clang-format to PR

on:
pull_request:
pull_request_target:
types: [labeled]

jobs:
clang-format:
runs-on: ubuntu-latest
permissions:
pull-requests: write

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: InsightSoftwareConsortium/ITKApplyClangFormatAction@master
Expand Down

0 comments on commit 5b0fd8a

Please sign in to comment.