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

File paths are cut off #43

Open
kimdre opened this issue Jun 29, 2024 · 2 comments
Open

File paths are cut off #43

kimdre opened this issue Jun 29, 2024 · 2 comments

Comments

@kimdre
Copy link

kimdre commented Jun 29, 2024

In my pipeline the paths are cut off:

alidate.yml should be /tasks/validate.yml
ain.yml: should be /meta/main.yml

Run ibiqlik/action-yamllint@v3
Run # export LOGFILE=$(mktemp yamllint-XXXXXX)
======================
= Linting YAML files =
======================
Warning: alidate.yml:6:12: [warning] truthy value should be one of [false, true] (truthy)
Warning: alidate.yml:[14](https://github.com/kimdre/ansible.hcloud-backup/actions/runs/9720037933/job/26830844881#step:3:15):12: [warning] truthy value should be one of [false, true] (truthy)
Warning: alidate.yml:25:12: [warning] truthy value should be one of [false, true] (truthy)
Warning: alidate.yml:35:12: [warning] truthy value should be one of [false, true] (truthy)
Warning: alidate.yml:47:12: [warning] truthy value should be one of [false, true] (truthy)
Warning: alidate.yml:62:12: [warning] truthy value should be one of [false, true] (truthy)
Warning: alidate.yml:73:12: [warning] truthy value should be one of [false, true] (truthy)
Warning: alidate.yml:75:121: [warning] line too long (123 > 120 characters) (line-length)
Warning: alidate.yml:76:121: [warning] line too long (131 > 120 characters) (line-length)
Warning: alidate.yml:77:121: [warning] line too long (124 > 120 characters) (line-length)
Warning: alidate.yml:78:121: [warning] line too long (1[32](https://github.com/kimdre/ansible.hcloud-backup/actions/runs/9720037933/job/26830844881#step:3:34) > 120 characters) (line-length)
Warning: ain.yml:15:21: [warning] truthy value should be one of [false, true] (truthy)
Warning: ain.yml:27:21: [warning] truthy value should be one of [false, true] (truthy)
Warning: /release.yml:1:1: [warning] missing document start "---" (document-start)
Warning: /workflows/release.yml:3:1: [warning] truthy value should be one of [false, true] (truthy)
Warning: /workflows/lint.yml:3:1: [warning] truthy value should be one of [false, true] (truthy)

this is my workflow job:

jobs:
  linter:
    name: Validate Files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Lint Yaml Files
        uses: ibiqlik/action-yamllint@v3
        with:
          config_data: |
            extends: default
            rules:
              line-length:
                level: warning
                max: 120
              brackets:
                max-spaces-inside: 1
@kimdre kimdre changed the title File names are cut off File paths are cut off Jun 29, 2024
@jgarcia-pluralsight
Copy link

This is also happening to me as well.
image

@timothyclarke
Copy link

timothyclarke commented Sep 5, 2024

How about

cat ${{ steps.yaml-lint.outputs.logfile }} >> ${GITHUB_STEP_SUMMARY}

It would be nice if this was part of the action so we had a step summary without the additional hoops of adding an id to the step etc.

Or if you want it to show in a nicer way use format: github and it will produce an annotation on the GitHub workflow summary

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

No branches or pull requests

3 participants