-
Notifications
You must be signed in to change notification settings - Fork 1k
Labels
O: backlog 🤖Backlog, stale ignores this labelBacklog, stale ignores this labelbugSomething isn't workingSomething isn't working
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Are you using the latest Super-linter version available?
-
I am using the latest Super-linter version.
-
I can reproduce the issue running Super-linter using complete version identifier (example: vX.Y.Z), and not just with a partial one (example: vX)
-
I am using the super-linter/super-linter action or container image, and not the deprecated github/super-linter action or container image.
Are you resonably sure that it's a Super-linter issue, and not an issue related to a tool that Super-linter runs?
- I think that this is a Super-linter issue.
Current Behavior
This seems similar to #7084 but not quite the same. So not sure if the fix (#7098) fixed this.
Also seems to be the same issue mentioned here #6873 (comment) by @dogmatic69
I have this set up:
uses: super-linter/super-linter/[email protected]
env:
DEFAULT_BRANCH: main
FILTER_REGEX_INCLUDE: src/static/html/.*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_HTML: true
USE_FIND_ALGORITHM: trueIt fails since 8.2.0 with the following:
2025-10-08 15:05:54 [INFO] Gathering GitHub information...
2025-10-08 15:05:54 [INFO] Successfully found GITHUB_EVENT_PATH: /github/workflow/event.json]
2025-10-08 15:05:54 [INFO] Successfully found GITHUB_SHA: 50a68fdd504fc3f93a9f235a3ae9b70af566c5d3
fatal: ambiguous argument 'main': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: -08 15:05:54 [ERROR] Failed to initialize GITHUB_BEFORE_SHA for a pull_request event. Output: main
2025-10-08 15:05:54 [FATAL] Error while initializing GITHUB_BEFORE_SHA
Expected Behavior
The config works. Or the 8.2.0 release notes warn of changes needed.
Super-Linter version
v8.2.0Super-linter configuration
- name: Checkout branch
uses: actions/checkout@v5
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
#Some other steps not shown to generate the HTML we want to lint
- name: Lint Generated HTML
uses: super-linter/super-linter/[email protected]
env:
DEFAULT_BRANCH: main
FILTER_REGEX_INCLUDE: src/static/html/.*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_HTML: true
USE_FIND_ALGORITHM: trueRelevant log output
2025-10-08 15:05:54 [INFO] Gathering GitHub information...
2025-10-08 15:05:54 [INFO] Successfully found GITHUB_EVENT_PATH: /github/workflow/event.json]
2025-10-08 15:05:54 [INFO] Successfully found GITHUB_SHA: 50a68fdd504fc3f93a9f235a3ae9b70af566c5d3
fatal: ambiguous argument 'main': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: -08 15:05:54 [ERROR] Failed to initialize GITHUB_BEFORE_SHA for a pull_request event. Output: main
2025-10-08 15:05:54 [FATAL] Error while initializing GITHUB_BEFORE_SHASteps To Reproduce
All PRs with above config seem to fail. Works fine if pinned to 8.1.0
Anything else?
No response
Metadata
Metadata
Assignees
Labels
O: backlog 🤖Backlog, stale ignores this labelBacklog, stale ignores this labelbugSomething isn't workingSomething isn't working