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 task
lepapareil opened this issue Jan 10, 2025 · 0 comments
Open
1 task

Shellcheck on Github workflow #3571

lepapareil opened this issue Jan 10, 2025 · 0 comments
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

  • don't use ${{}} expression on run section, instead prefer env section
@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
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

No branches or pull requests

1 participant