Skip to content

ci: pass GITHUB_TOKEN to super-linter#43

Merged
hydai merged 1 commit into
mainfrom
ci/fix-super-linter-token-1
Jun 11, 2026
Merged

ci: pass GITHUB_TOKEN to super-linter#43
hydai merged 1 commit into
mainfrom
ci/fix-super-linter-token-1

Conversation

@0yi0

@0yi0 0yi0 commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Fixes the Lint failure currently blocking #21 (and every future PR):

[FATAL] Failed to get GITHUB_TOKEN. Terminating because status reports (MULTI_STATUS: false)
or pull request summary comments (ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: true) were
explicitly enabled, but GITHUB_TOKEN was not provided.

Follows the working setup in WasmEdge/wasmedgeup's superlinter.yml:

  • pass the automatic workflow token (secrets.GITHUB_TOKEN) to super-linter — no repo/org secret needed
  • grant the job packages: read + pull-requests: write so the PR summary comment can be posted

Deliberately not ported from wasmedgeup: the GITHUB_BEFORE_SHA workaround step — it was already removed from this repo in #8 as resolved upstream (super-linter#6316).

This PR's own Lint check runs with the fixed workflow, so a green check here validates the fix.


🤖 Generated by Claude Fable 5 with Claude Code

super-linter v8 terminates with FATAL when status reports or pull
request summary comments are enabled but no GITHUB_TOKEN is provided.
Pass the automatic workflow token and grant the job the permissions it
needs, following WasmEdge/wasmedgeup's superlinter.yml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Yi Huang <yi@secondstate.io>
@github-actions

Copy link
Copy Markdown

Super-linter summary

Language Validation result
GITHUB_ACTIONS Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
YAML Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@hydai hydai merged commit 26ac04d into main Jun 11, 2026
2 checks passed
@hydai hydai deleted the ci/fix-super-linter-token-1 branch June 11, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants