Skip to content

Commit

Permalink
fix permission of GitHub Actions workflow.
Browse files Browse the repository at this point in the history
I got some errors on GitHub Actions.

```
  ℹ️ - JUnit Report (5.10) - 143 tests run, 143 passed, 0 skipped, 0 failed.
  ℹ️ - JUnit Report (5.10) - Creating check for
  Error: ❌ Failed to create checks using the provided token. (HttpError: Resource not accessible by integration)
  Warning: ⚠️ This usually indicates insufficient permissions. More details: mikepenz/action-junit-report#23
```

Because the default permissions have changed,
permissions must be set explicitly..
  • Loading branch information
shogo82148 committed Jun 6, 2023
1 parent 7cf84e6 commit bb02b1c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/multiperl-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
permissions:
contents: read
steps:
- name: Check out repo
uses: actions/checkout@v3
Expand Down Expand Up @@ -49,6 +51,9 @@ jobs:
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1

permissions:
checks: write

runs-on: ubuntu-latest

strategy:
Expand Down

0 comments on commit bb02b1c

Please sign in to comment.