Skip to content

Commit 7ab842a

Browse files
Report super-linter results in both the run summary and a PR comment
Grant the Lint job pull-requests: write so super-linter can post its summary comment on the pull request instead of failing the POST with HTTP 403, and turn on the job step summary. SAVE_SUPER_LINTER_SUMMARY builds the summary that both surfaces render.
1 parent ec14d74 commit 7ab842a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/Docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
contents: read
3434
packages: read # super-linter: read packages
3535
statuses: write # super-linter: report status checks
36+
pull-requests: write # super-linter: post PR summary comment
3637
steps:
3738
- name: Checkout repository
3839
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -44,6 +45,9 @@ jobs:
4445
uses: super-linter/super-linter@4ce20838b8ab83717e78138c5b3a1407148e0918 # v8.7.0
4546
env:
4647
GITHUB_TOKEN: ${{ github.token }}
48+
ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true
49+
ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: true
50+
SAVE_SUPER_LINTER_SUMMARY: true
4751
VALIDATE_BIOME_LINT: false
4852
VALIDATE_BIOME_FORMAT: false
4953
VALIDATE_JSCPD: false

0 commit comments

Comments
 (0)