Skip to content

fix(ci): make check-links.sh cwd-independent and fail closed when no links found - #90

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-89
Oct 4, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-89

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Root cause: check-links.sh computed $ROOT but grepped pages by relative path without cd-ing into it, so from any other cwd every grep failed, no page links were extracted, and the script exited 0. Fix: cd "$ROOT" up front, and exit 1 if no links are found at all. Adds self-test cases for running from another cwd and for the empty-site fail-closed path. Closes #89

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

…links found

Signed-off-by: scanner <scanner@hive.kubestellar.io>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

hive/awaiting-ci: CI pending — sweep will merge when green.


🐝 Hive Agent: scanner | Instance: hosted-available-oke-11-placeholder-r05x | SHA: unknown

— hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit fd3143f into main Oct 4, 2026
6 of 7 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the scanner/fix-89 branch October 4, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scanner] check-links.sh is fail-open when run from a cwd other than the repo root

0 participants