Skip to content

Fix yamllint violations in automatus CI workflows#14744

Merged
Mab879 merged 2 commits into
ComplianceAsCode:masterfrom
marcusburghardt:fix-automatus-yamllint
May 29, 2026
Merged

Fix yamllint violations in automatus CI workflows#14744
Mab879 merged 2 commits into
ComplianceAsCode:masterfrom
marcusburghardt:fix-automatus-yamllint

Conversation

@marcusburghardt

Copy link
Copy Markdown
Member

Description:

  • Fix all pre-existing yamllint violations (26 per file) in the automatus-debian12.yaml and automatus-ubuntu2204.yaml GitHub Actions workflow files.
  • Changes are purely formatting -- no functional changes to CI behavior.
  • Techniques used:
    • Fix bracket spacing on branch filters ([ master, ...] to [master, ...])
    • Break long apt-get/apt install commands using run: | with \ line continuations
    • Break long shell commands (git, python3, podman, wget, test scripts) into multiline blocks
    • Move inline version comments from uses: lines to comment lines above (e.g., # notiz-dev/github-action-json-property v0.2.0)
    • Fold long if: expressions using >- YAML scalars
    • Fold long env: values using >- YAML scalars
    • Rewrap long comments and shorten long step names

Rationale:

  • These yamllint violations were pre-existing but never caught because the CI lint job (ci_lint.yml) only validates files modified by a PR. Any PR that touches either of these workflow files would trigger yamllint failures unrelated to the PR's changes.
  • This was observed in PR Remove compliance-trestle dependency (CVE-2026-45725) #14743 where a one-line change to remove a pip dependency caused 10 yamllint annotation errors.

Review Hints:

  • Verify locally with: yamllint -s -c .yamllint .github/workflows/automatus-debian12.yaml .github/workflows/automatus-ubuntu2204.yaml
  • Both files are structurally identical except for product-specific values (debian12 vs ubuntu2204). Reviewing one file thoroughly and then spot-checking the other for product name differences is sufficient.
  • Related PR: Remove compliance-trestle dependency (CVE-2026-45725) #14743 (Remove compliance-trestle dependency), which is blocked by these lint failures.

Comment thread .github/workflows/automatus-debian12.yaml Outdated
marcusburghardt added a commit to marcusburghardt/content that referenced this pull request May 29, 2026
Restore the original inline '# vX.Y.Z' comment style on all uses:
lines to match the convention used across other workflow files.

For notiz-dev/github-action-json-property lines that exceed 99
characters with inline comments, add yamllint disable-line directives
instead of moving the comment to a separate line.

Addresses PR ComplianceAsCode#14744 review feedback from @Mab879.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
@marcusburghardt marcusburghardt requested a review from Mab879 May 29, 2026 05:54
@Mab879 Mab879 added this to the 0.1.82 milestone May 29, 2026

@Mab879 Mab879 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Seems like this needs a rebase.

Fix all yamllint violations (26 per file) in the automatus-debian12
and automatus-ubuntu2204 GitHub Actions workflow files.

Changes (formatting only, no functional changes):
- Fix bracket spacing on branch filters
- Break long apt-get/apt install commands with line continuations
- Break long shell commands (git, python3, podman, wget, test scripts)
  using block scalars with line continuations
- Move inline version comments from uses: lines to comment lines above
  to keep uses: references under 99 characters
- Fold long if: expressions using >- YAML scalars
- Fold long env values using >- YAML scalars
- Rewrap long comments to fit within 99 characters
- Shorten long step name text

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
Restore the original inline '# vX.Y.Z' comment style on all uses:
lines to match the convention used across other workflow files.

For notiz-dev/github-action-json-property lines that exceed 99
characters with inline comments, add yamllint disable-line directives
instead of moving the comment to a separate line.

Addresses PR ComplianceAsCode#14744 review feedback from @Mab879.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
@marcusburghardt marcusburghardt force-pushed the fix-automatus-yamllint branch from 32889e6 to faf30c9 Compare May 29, 2026 15:00
@marcusburghardt marcusburghardt requested a review from Mab879 May 29, 2026 15:00
@marcusburghardt

Copy link
Copy Markdown
Member Author

Seems like this needs a rebase.

Just rebased @Mab879 . Thanks for the review. :)

@openshift-ci

openshift-ci Bot commented May 29, 2026

Copy link
Copy Markdown

@marcusburghardt: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-platform-compliance faf30c9 link true /test e2e-aws-openshift-platform-compliance

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@Mab879 Mab879 merged commit ff94a31 into ComplianceAsCode:master May 29, 2026
64 of 67 checks passed
@marcusburghardt marcusburghardt deleted the fix-automatus-yamllint branch June 1, 2026 08:26
Arden97 pushed a commit to Arden97/content that referenced this pull request Jun 1, 2026
Restore the original inline '# vX.Y.Z' comment style on all uses:
lines to match the convention used across other workflow files.

For notiz-dev/github-action-json-property lines that exceed 99
characters with inline comments, add yamllint disable-line directives
instead of moving the comment to a separate line.

Addresses PR ComplianceAsCode#14744 review feedback from @Mab879.

Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>
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.

2 participants