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