Skip to content

Commit

Permalink
Include permissions for private repos
Browse files Browse the repository at this point in the history
  • Loading branch information
matejchalk committed Apr 12, 2024
1 parent 9575e25 commit d32e91c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,22 @@ on:
branches: [main]

permissions:
contents: read
actions: read
pull-requests: write

jobs:
code-pushup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci
- uses: code-pushup/github-action@v0
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
- name: Code PushUp
uses: code-pushup/github-action@v0
```
## Action inputs
Expand Down Expand Up @@ -84,7 +90,7 @@ Example of using step outputs:
```yml
- uses: code-pushup/github-action@v0
id: code-pushup
- run: |
run: |
echo "Comment ID is ${{ steps.code-pushup.outputs.comment-id }}"
echo "Artifact ID is ${{ steps.code-pushup.outputs.artifact-id }}"
```

0 comments on commit d32e91c

Please sign in to comment.