Skip to content

Commit f8875b3

Browse files
committed
chore(yamllint): Allow longer lines to avoid unneeded linter disabling
Formater which will be introduced later, will enforse stricter rules when it possible
1 parent 8b50354 commit f8875b3

File tree

12 files changed

+2
-41
lines changed

12 files changed

+2
-41
lines changed

.github/.container-structure-test-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ commandTests:
137137

138138
fileExistenceTests:
139139
- name: terrascan init
140-
# yamllint disable-line rule:line-length
141140
path: >-
142141
/root/.terrascan/pkg/policies/opa/rego/github/github_repository/privateRepoEnabled.rego
143142
shouldExist: true

.github/workflows/build-image-test.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040

4141
- name: Get changed Docker related files
4242
id: changed-files-specific
43-
# yamllint disable-line rule:line-length
4443
uses: tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45.0.6
4544
with:
4645
files: |
@@ -59,13 +58,11 @@ jobs:
5958
>> $GITHUB_ENV
6059
6160
- name: Set up Docker Buildx
62-
# yamllint disable-line rule:line-length
6361
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
6462
if: steps.changed-files-specific.outputs.any_changed == 'true'
6563

6664
- name: Build if Dockerfile changed
6765
if: steps.changed-files-specific.outputs.any_changed == 'true'
68-
# yamllint disable-line rule:line-length
6966
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
7067
with:
7168
context: .
@@ -105,7 +102,6 @@ jobs:
105102
106103
- name: Dive - check image for waste files
107104
if: steps.changed-files-specific.outputs.any_changed == 'true'
108-
# yamllint disable-line rule:line-length
109105
uses: MaxymVlasov/dive-action@b6a02b38f0f309e8817199658eab090d4f0f93ce # v1.1.0
110106
with:
111107
image: ${{ env.IMAGE }}
@@ -118,7 +114,6 @@ jobs:
118114
if: >-
119115
steps.changed-files-specific.outputs.any_changed == 'true'
120116
&& matrix.os == 'ubuntu-latest'
121-
# yamllint disable-line rule:line-length
122117
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
123118
with:
124119
context: .

.github/workflows/build-image.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ jobs:
2424
- name: Checkout code
2525
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
- name: Set up Docker Buildx
27-
# yamllint disable-line rule:line-length
2827
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
2928
- name: Login to GitHub Container Registry
30-
# yamllint disable-line rule:line-length
3129
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
3230
with:
3331
registry: ghcr.io
@@ -47,12 +45,10 @@ jobs:
4745
run: >-
4846
echo "IMAGE_REPO=ghcr.io/${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV
4947
- name: Set up Docker Buildx
50-
# yamllint disable-line rule:line-length
5148
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
5249

5350
- name: Build and Push release
5451
if: github.event_name != 'schedule'
55-
# yamllint disable-line rule:line-length
5652
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
5753
with:
5854
context: .
@@ -70,7 +66,6 @@ jobs:
7066
7167
- name: Build and Push nightly
7268
if: github.event_name == 'schedule'
73-
# yamllint disable-line rule:line-length
7469
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
7570
with:
7671
context: .

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,10 @@ jobs:
109109

110110
steps:
111111
- name: Switch to using Python 3.13 by default
112-
# yamllint disable-line rule:line-length
113112
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
114113
with:
115114
python-version: 3.13
116115
- name: Check out src from Git
117-
# yamllint disable-line rule:line-length
118116
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
119117
with:
120118
fetch-depth: 0
@@ -167,7 +165,6 @@ jobs:
167165
echo "dir=$(python -m pip cache dir)" >> "${GITHUB_OUTPUT}"
168166
shell: bash
169167
- name: Set up pip cache
170-
# yamllint disable-line rule:line-length
171168
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
172169
with:
173170
path: ${{ steps.pip-cache-dir.outputs.dir }}
@@ -274,13 +271,11 @@ jobs:
274271

275272
steps:
276273
- name: Switch to using Python 3.13
277-
# yamllint disable-line rule:line-length
278274
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
279275
with:
280276
python-version: 3.13
281277

282278
- name: Grab the source from Git
283-
# yamllint disable-line rule:line-length
284279
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
285280
with:
286281
fetch-depth: 0
@@ -309,7 +304,6 @@ jobs:
309304
run: >-
310305
echo "dir=$(python -m pip cache dir)" >> "${GITHUB_OUTPUT}"
311306
- name: Set up pip cache
312-
# yamllint disable-line rule:line-length
313307
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
314308
with:
315309
path: ${{ steps.pip-cache-dir.outputs.dir }}
@@ -375,7 +369,6 @@ jobs:
375369
>> "${GITHUB_OUTPUT}"
376370
working-directory: dist
377371
- name: Store the distribution packages
378-
# yamllint disable-line rule:line-length
379372
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
380373
with:
381374
name: >-
@@ -522,7 +515,6 @@ jobs:
522515

523516
steps:
524517
- name: Decide whether the needed jobs succeeded or failed
525-
# yamllint disable-line rule:line-length
526518
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
527519
with:
528520
jobs: ${{ toJSON(needs) }}

.github/workflows/codeql.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747

4848
# Initializes the CodeQL tools for scanning.
4949
- name: Initialize CodeQL
50-
# yamllint disable-line rule:line-length
5150
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
5251
with:
5352
languages: ${{ matrix.language }}
@@ -60,7 +59,6 @@ jobs:
6059
# If this step fails, then you should remove it and run the build
6160
# manually (see below)
6261
- name: Autobuild
63-
# yamllint disable-line rule:line-length
6462
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
6563

6664
# ℹ️ Command-line programs to run using the OS shell.
@@ -76,7 +74,6 @@ jobs:
7674
# ./location_of_script_within_repo/buildscript.sh
7775

7876
- name: Perform CodeQL Analysis
79-
# yamllint disable-line rule:line-length
8077
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
8178
with:
8279
category: /language:${{matrix.language}}

.github/workflows/dependency-review.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout Repository
25-
# yamllint disable-line rule:line-length
2625
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2726
- name: Dependency Review
28-
# yamllint disable-line rule:line-length
2927
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0

.github/workflows/pr-title.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
steps:
2626
# Please look up the latest version from
2727
# https://github.com/amannn/action-semantic-pull-request/releases
28-
# yamllint disable-line rule:line-length
2928
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
3029
env:
3130
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pre-commit.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
fetch-depth: 0
5656
ref: ${{ github.event.pull_request.head.sha }}
5757
# Skip terraform_tflint which interferes to commit pre-commit auto-fixes
58-
# yamllint disable-line rule:line-length
5958
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
6059
with:
6160
python-version: '3.9'

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
fetch-depth: 0
3939

4040
- name: Release
41-
# yamllint disable-line rule:line-length
4241
uses: cycjimmy/semantic-release-action@b1b432f13acb7768e0c8efdec416d363a57546f2 # v4.1.1
4342
with:
4443
semantic_version: 18.0.0

.github/workflows/reusable-tox.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ jobs:
158158
Switch to using Python v${{ inputs.python-version }}
159159
by default
160160
id: python-install
161-
# yamllint disable-line rule:line-length
162161
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
163162
with:
164163
python-version: ${{ inputs.python-version }}
@@ -169,22 +168,19 @@ jobs:
169168
- name: Grab the source from Git
170169
if: >-
171170
contains(fromJSON('["pre-commit", "spellcheck-docs"]'), inputs.toxenv)
172-
# yamllint disable-line rule:line-length
173171
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
174172
with:
175173
ref: ${{ github.event.inputs.release-committish }}
176174
- name: Retrieve the project source from an sdist inside the GHA artifact
177175
if: >-
178176
!contains(fromJSON('["pre-commit", "spellcheck-docs"]'), inputs.toxenv)
179-
# yamllint disable-line rule:line-length
180177
uses: re-actors/checkout-python-sdist@187f55296b0f54d88259aaaf99af32ad3647d3bc # v2.0.0
181178
with:
182179
source-tarball-name: ${{ inputs.source-tarball-name }}
183180
workflow-artifact-name: ${{ inputs.dists-artifact-name }}
184181

185182
- name: Cache pre-commit.com virtualenvs
186183
if: inputs.toxenv == 'pre-commit'
187-
# yamllint disable-line rule:line-length
188184
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
189185
with:
190186
path: ~/.cache/pre-commit
@@ -243,7 +239,6 @@ jobs:
243239
shell: bash
244240
- name: Set up pip cache
245241
if: fromJSON(steps.py-abi.outputs.is-stable-abi)
246-
# yamllint disable-line rule:line-length
247242
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
248243
with:
249244
path: ${{ steps.pip-cache-dir.outputs.dir }}
@@ -271,7 +266,6 @@ jobs:
271266
- name: Download all the dists
272267
if: >-
273268
contains(fromJSON('["metadata-validation", "pytest"]'), inputs.toxenv)
274-
# yamllint disable-line rule:line-length
275269
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
276270
with:
277271
name: ${{ inputs.dists-artifact-name }}
@@ -325,7 +319,6 @@ jobs:
325319
if: >-
326320
!cancelled()
327321
&& steps.tox-run.outputs.test-result-files != ''
328-
# yamllint disable-line rule:line-length
329322
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4
330323
with:
331324
paths: >-
@@ -343,7 +336,6 @@ jobs:
343336
&& steps.tox-run.outputs.cov-report-files != ''
344337
&& steps.tox-run.outputs.test-result-files == ''
345338
&& steps.tox-run.outputs.codecov-flags != 'MyPy'
346-
# yamllint disable-line rule:line-length
347339
uses: irongut/CodeCoverageSummary@51cc3a756ddcd398d447c044c02cb6aa83fdae95 # v1.3.0
348340
with:
349341
badge: true
@@ -382,7 +374,6 @@ jobs:
382374
if: >-
383375
!cancelled()
384376
&& steps.tox-run.outputs.cov-report-files != ''
385-
# yamllint disable-line rule:line-length
386377
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
387378
with:
388379
disable_search: true
@@ -407,7 +398,6 @@ jobs:
407398
if: >-
408399
!cancelled()
409400
&& steps.tox-run.outputs.test-result-files != ''
410-
# yamllint disable-line rule:line-length
411401
uses: codecov/test-results-action@4e79e65778be1cecd5df25e14af1eafb6df80ea9 # v1.0.2
412402
with:
413403
disable_search: true

0 commit comments

Comments
 (0)