update revive workflow
This commit is contained in:
16
.github/workflows/revive.yml
vendored
16
.github/workflows/revive.yml
vendored
@@ -6,12 +6,11 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "main" ]
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: read
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@@ -25,11 +24,6 @@ jobs:
|
|||||||
- name: Install revive
|
- name: Install revive
|
||||||
run: go install github.com/mgechev/revive@latest
|
run: go install github.com/mgechev/revive@latest
|
||||||
|
|
||||||
- name: Run revive and generate SARIF report
|
- name: Run revive
|
||||||
run: |
|
run: |
|
||||||
revive -config revive.toml -formatter sarif ./... > revive-results.sarif || true
|
revive -config revive.toml -formatter stylish ./...
|
||||||
|
|
||||||
- name: Upload SARIF report
|
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
|
||||||
with:
|
|
||||||
sarif_file: revive-results.sarif
|
|
||||||
|
|||||||
Reference in New Issue
Block a user