Skip to content

ci: vendor validation scripts and remove remote action pins - #327

Merged
hyperpolymath merged 2 commits into
mainfrom
fix-ci-actions
Jul 27, 2026
Merged

ci: vendor validation scripts and remove remote action pins#327
hyperpolymath merged 2 commits into
mainfrom
fix-ci-actions

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Automated PR to fix CI after deleted actions.

Comment thread .githooks/validate-a2ml.sh
Comment thread .githooks/validate-a2ml.sh

@gitar-bot gitar-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitar has auto-approved this PR (configure)

@hyperpolymath
hyperpolymath merged commit 0823afc into main Jul 27, 2026
1 check passed
@hyperpolymath
hyperpolymath deleted the fix-ci-actions branch July 27, 2026 22:44
@gitar-bot

gitar-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 2 resolved / 2 findings

Vendors validation scripts and removes remote action pins to fix CI stability. No issues found.

Auto-approved: No blocking issues found.
Please see Auto-approve Docs for details on setting custom approval criteria.

✅ 2 resolved
Edge Case: while-read loops skip final line lacking trailing newline

📄 .githooks/validate-a2ml.sh:102-111 📄 .githooks/validate-a2ml.sh:128-142 📄 .githooks/validate-a2ml.sh:239-253 📄 .githooks/validate-a2ml.sh:270-280
All validation loops use while IFS= read -r line; do ... done < "$file", which does not process the last line when the file has no trailing newline (read returns non-zero at EOF without a delimiter). A single-line .k9 file containing exactly K9! with no trailing newline would be reported as missing the magic number, and last-line fields (name/version/identity) can be missed — producing false errors or false passes. Process a trailing partial line, e.g. while IFS= read -r line || [[ -n "$line" ]]; do.

Quality: Scripts require bash >= 4.4 despite .githooks/ hook location

📄 .githooks/validate-a2ml.sh:21 📄 .githooks/validate-a2ml.sh:37-51 📄 .githooks/validate-a2ml.sh:292
These scripts use mapfile (bash 4.0+) and reference a potentially-empty array via "${PATHS_IGNORE[@]}" under set -u (safe only on bash 4.4+). CI (ubuntu-latest) runs bash 5, so the workflow is fine, but the .githooks/ location and #!/usr/bin/env bash shebang imply local hook use, and macOS still ships bash 3.2 where mapfile is absent and the empty-array expansion aborts with 'unbound variable'. Consider documenting the bash 4.4+ requirement or guarding the empty-array access (e.g. ${PATHS_IGNORE[@]+"${PATHS_IGNORE[@]}"}).

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

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.

1 participant