Skip to content

Set Token Permissions on GitHub workflows #269

Set Token Permissions on GitHub workflows

Set Token Permissions on GitHub workflows #269

Workflow file for this run

name: Reviewdog
on:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
bazel:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Bazel Buildifier
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- bazel
- uses: reviewdog/action-suggester@v1
black:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Python Black
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- black
- uses: reviewdog/action-suggester@v1
clang:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Clang Format
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- clang
- uses: reviewdog/action-suggester@v1
pyupgrade:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Python Pyupgrade
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- pyupgrade
- uses: reviewdog/action-suggester@v1