Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shellcheck on Github workflow #3571

Open
1 of 2 tasks
lepapareil opened this issue Jan 10, 2025 · 0 comments · May be fixed by #3596
Open
1 of 2 tasks

Shellcheck on Github workflow #3571

lepapareil opened this issue Jan 10, 2025 · 0 comments · May be fixed by #3596
Assignees
Labels
ci enhancement New feature or request

Comments

@lepapareil
Copy link
Collaborator

lepapareil commented Jan 10, 2025

Problem to solve

Lint all bash line scripts contained in Github worflows run section.

Proposal

use yq to extract run section, for example:

for yaml in .github/workflows/*yml ; do
    echo shellcheck <(yq '.jobs[].steps[] | select(.run != null) | .run' $yaml)
done

Tasks to complete

  • udpate bin/check/shellcheck.sh => 349f381
  • fix shellcheck alerts
@lepapareil lepapareil added ci enhancement New feature or request labels Jan 10, 2025
@lepapareil lepapareil self-assigned this Jan 10, 2025
@lepapareil lepapareil changed the title Shellcheck on github workflow Shellcheck on Github workflow Jan 10, 2025
@lepapareil lepapareil linked a pull request Jan 15, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant