You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Replace github-script with gh CLI for PR comments
Replace the complex github-script action with a simple gh CLI command
to avoid YAML parsing issues with JavaScript template literals.
Issue:
Invalid workflow file: .github/workflows/chart-lock-check.yaml#L64
You have an error in your yaml syntax on line 64
Root Cause:
GitHub's YAML parser was having issues with the JavaScript template
literal string concatenation inside the github-script action, even
though it was technically valid.
Solution:
Use the GitHub CLI (gh) which is pre-installed on GitHub runners:
gh pr comment ${{ github.event.pull_request.number }} --body "..."
Benefits:
✅ No JavaScript/YAML escaping conflicts
✅ Simpler and more readable
✅ Native multi-line string support
✅ No external action dependency (uses built-in gh CLI)
✅ Same functionality, cleaner implementation
0 commit comments