Skip to content

Comments

Fix actionlint config path resolution after cd into REPO_ROOT#53

Merged
coleaeason merged 1 commit intomainfrom
claude-fixActionlintConfigPath
Feb 11, 2026
Merged

Fix actionlint config path resolution after cd into REPO_ROOT#53
coleaeason merged 1 commit intomainfrom
claude-fixActionlintConfigPath

Conversation

@MelvinBot
Copy link
Contributor

Details

After cd "$REPO_ROOT", the config file checks in actionlint.sh still referenced $REPO_ROOT/.github/actionlint.yml, creating a double-nested path (e.g., FuzzyBot/FuzzyBot/.github/actionlint.yml) that never exists. This caused the script to always fall back to the GitHub-Actions default config, silently ignoring repo-local actionlint.yml configs for every repo in the org that has one.

The fix uses paths relative to the current working directory (which is already inside the repo after the cd) instead of prefixing with $REPO_ROOT.

Related Issues

$ https://github.com/Expensify/Expensify/issues/599362

Manual Tests

  1. On a repo with its own .github/actionlint.yml (e.g., FuzzyBot), the script should now log "Using actionlint file from this repo" instead of "Using default Github-Actions repo actionlint.yml".
  2. On a repo without its own .github/actionlint.yml, the fallback to the GitHub-Actions config should still work as before.
  3. Retrigger CI on FuzzyBot PR #331 — the actionlint check should pass after this fix is merged.

Linked PRs

N/A

After `cd "$REPO_ROOT"`, the config file checks still referenced
`$REPO_ROOT/.github/actionlint.yml`, creating a double-nested path
(e.g., FuzzyBot/FuzzyBot/.github/actionlint.yml) that never exists.
This caused the script to always fall back to the GitHub-Actions
default config, silently ignoring repo-local actionlint configs.

Use paths relative to cwd (which is already inside the repo after
the cd) instead of prefixing with $REPO_ROOT.

Co-authored-by: Justin Persaud <[email protected]>
@MelvinBot MelvinBot requested a review from a team February 11, 2026 17:59
@github-actions
Copy link

github-actions bot commented Feb 11, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@justinpersaud justinpersaud marked this pull request as ready for review February 11, 2026 18:01
@melvin-bot melvin-bot bot requested review from mollfpr and removed request for a team February 11, 2026 18:02
@justinpersaud
Copy link
Contributor

justinpersaud commented Feb 11, 2026

@MelvinBot can you sign the CLA noted in the comment above?

@MelvinBot
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

CLABotify added a commit to Expensify/CLA that referenced this pull request Feb 11, 2026
@justinpersaud justinpersaud requested review from coleaeason and stitesExpensify and removed request for mollfpr February 11, 2026 18:25
@coleaeason coleaeason merged commit 4afdd95 into main Feb 11, 2026
5 of 6 checks passed
@coleaeason coleaeason deleted the claude-fixActionlintConfigPath branch February 11, 2026 18:36
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.

3 participants