Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Set permissions for GitHub actions #2051

Merged
merged 7 commits into from Jun 4, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -4,8 +4,14 @@ on:
- push
- pull_request

permissions:
contents: read
lpinca marked this conversation as resolved.
Show resolved Hide resolved

jobs:
test:
permissions:
checks: write # Needed for coverallsapp/github-action.
lpinca marked this conversation as resolved.
Show resolved Hide resolved
contents: read # for actions/checkout to fetch code
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this inherited from the same permission defined at the root level? If so, can you please remove it?

lpinca marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -55,6 +61,8 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
coverage:
permissions:
checks: write
lpinca marked this conversation as resolved.
Show resolved Hide resolved
needs: test
runs-on: ubuntu-latest
steps:
Expand Down