Correct /api/roles API to respond with 403 Forbidden (not 401 Unauthorized) when auth is good but no permission #5509
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Maven CheckStyle Task | |
on: | |
pull_request: | |
paths: | |
- "**.java" | |
jobs: | |
checkstyle_job: | |
runs-on: ubuntu-latest | |
name: Checkstyle job | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run check style | |
uses: nikitasavinov/checkstyle-action@master | |
with: | |
fail_on_error: true | |
reporter: github-pr-review | |
checkstyle_config: checkstyle.xml | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |