ibiqlik / action-yamllint

GitHub Action - Yaml Lint
MIT License
96 stars 41 forks source link

File paths are cut off #43

Open kimdre opened 4 months ago

kimdre commented 4 months ago

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
jgarcia-pluralsight commented 3 months ago

This is also happening to me as well. image

timothyclarke commented 2 months ago

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