Skip to content

⚙️ [Maintenance]: super-linter reports results in the run summary and a PR comment#54

Merged
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
docs/fix-super-linter-summary-comment
Jul 2, 2026
Merged

⚙️ [Maintenance]: super-linter reports results in the run summary and a PR comment#54
Marius Storhaug (MariusStorhaug) merged 1 commit into
mainfrom
docs/fix-super-linter-summary-comment

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Jul 2, 2026

Copy link
Copy Markdown
Member

The documentation pipeline no longer errors when super-linter reports its results. super-linter now publishes its lint summary to both the workflow run job summary and a comment on the pull request.

Fixed: super-linter 403 error on pull requests

super-linter posts a summary comment on the pull request, but the Lint job did not grant pull-requests: write, so the comment API call failed with HTTP 403 on every pull request:

[ERROR] Failed to call GitHub API (.../issues/<n>/comments) with POST HTTP method: curl: (22) The requested URL returned error: 403
[ERROR] Error while posting pull request summary

The pipeline still passed, but the error made runs look broken. It was pre-existing on v8.6.0 (logged as a warning); super-linter v8.7.0 escalated it to an error and enabled the run summary by default, which also produced a summary-configuration warning.

Changed: lint results now appear in the run summary and a PR comment

super-linter now reports to both surfaces:

Technical Details

In .github/workflows/Docs.yml:

  • The Lint job now grants pull-requests: write so super-linter can create and update the pull request comment (the permission the 403 was missing).
  • The Lint step sets ENABLE_GITHUB_ACTIONS_STEP_SUMMARY: true, ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: true, and SAVE_SUPER_LINTER_SUMMARY: true (the last is required to build the summary that both surfaces render).

Note: pull requests opened from forks always receive a read-only GITHUB_TOKEN, so the comment is skipped there — the run job summary still shows the results.

Related issues

@MariusStorhaug Marius Storhaug (MariusStorhaug) added the github_actions Pull requests that update GitHub Actions code label Jul 2, 2026
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.
@MariusStorhaug Marius Storhaug (MariusStorhaug) force-pushed the docs/fix-super-linter-summary-comment branch from 8a41752 to 7ab842a Compare July 2, 2026 05:54
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title ⚙️ [Maintenance]: super-linter reports results in the run summary instead of a PR comment ⚙️ [Maintenance]: super-linter reports results in the run summary and a PR comment Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Super-linter summary

Language Validation result
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
HTML Pass ✅
JAVASCRIPT_ES Pass ✅
JAVASCRIPT_PRETTIER Pass ✅
MARKDOWN Pass ✅
NATURAL_LANGUAGE Pass ✅
POWERSHELL Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@MariusStorhaug Marius Storhaug (MariusStorhaug) merged commit 5e4bc40 into main Jul 2, 2026
21 checks passed
@MariusStorhaug Marius Storhaug (MariusStorhaug) deleted the docs/fix-super-linter-summary-comment branch July 2, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix super-linter 403 error when posting the pull request summary comment

1 participant