Skip to content

Commit a922245

Browse files
author
Ian Lewis
authored
Fix yamllint errors (#340)
1 parent c02f942 commit a922245

12 files changed

+53
-55
lines changed

.github/dependabot.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
version: 2
22
updates:
3-
- package-ecosystem: gomod
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
commit-message:
3+
- package-ecosystem: gomod
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
commit-message:
88
prefix: ":seedling:"
9-
open-pull-requests-limit: 10
9+
open-pull-requests-limit: 10
1010

11-
- package-ecosystem: "github-actions"
12-
directory: "/"
13-
schedule:
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
1414
interval: weekly
15-
commit-message:
15+
commit-message:
1616
prefix: ":seedling:"

.github/workflows/codeql-analysis.yml

+30-31
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ main, '*' ]
16+
branches: [main, "*"]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ main ]
19+
branches: [main]
2020
schedule:
21-
- cron: '21 0 * * 2'
21+
- cron: "21 0 * * 2"
2222

2323
jobs:
2424
analyze:
@@ -32,41 +32,40 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'go' ]
35+
language: ["go"]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
52-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
# queries: security-extended,security-and-quality
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
5451

55-
56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
6054

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
55+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56+
# If this step fails, then you should remove it and run the build manually (see below)
57+
- name: Autobuild
58+
uses: github/codeql-action/autobuild@v2
6359

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
65-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
60+
# ℹ️ Command-line programs to run using the OS shell.
61+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6662

67-
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
63+
# If the Autobuild fails above, remove it and uncomment the following three lines.
64+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
7065

71-
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
66+
# - run: |
67+
# echo "Run, Build Application using script"
68+
# ./location_of_script_within_repo/buildscript.sh
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v2

.github/workflows/pre-submit.e2e.generic.default.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
needs: [build]
2323
steps:
24-
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 #v2.4.0
24+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
2525
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
2626
with:
2727
name: ${{ needs.build.outputs.attestation-name }}

.github/workflows/pre-submit.e2e.go.config-ldflags-main-dir.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
needs: build
4242
steps:
43-
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 #v2.4.0
43+
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
4444
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
4545
with:
4646
name: ${{ needs.build.outputs.go-binary-name }}

internal/builders/go/pkg/testdata/releaser-invalid-envs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ goos: linux
1010
goarch: amd64
1111
binary: binary-{{ .OS }}-{{ .Arch }}
1212
ldflags:
13-
- '{{ .Env.VERSION_LDFLAGS }}'
13+
- "{{ .Env.VERSION_LDFLAGS }}"

internal/builders/go/pkg/testdata/releaser-invalid-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ goarch: amd64
1313
main: /not/relative
1414
binary: binary-{{ .OS }}-{{ .Arch }}
1515
ldflags:
16-
- '{{ .Env.VERSION_LDFLAGS }}'
16+
- "{{ .Env.VERSION_LDFLAGS }}"

internal/builders/go/pkg/testdata/releaser-invalid-version.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ flags:
88
- -trimpath
99
- -tags=netgo
1010

11-
#TODO:
12-
#mod_timestamp: '{{ .CommitTimestamp }}'
11+
# TODO:
12+
# mod_timestamp: '{{ .CommitTimestamp }}'
1313
goos: linux
1414
goarch: amd64
1515
binary: binary-{{ .OS }}-{{ .Arch }}
1616
ldflags:
17-
- '{{ .Env.VERSION_LDFLAGS }}'
17+
- "{{ .Env.VERSION_LDFLAGS }}"

internal/builders/go/pkg/testdata/releaser-noversion.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ flags:
77
- -trimpath
88
- -tags=netgo
99

10-
#TODO:
11-
#mod_timestamp: '{{ .CommitTimestamp }}'
10+
# TODO:
11+
# mod_timestamp: '{{ .CommitTimestamp }}'
1212
goos: linux
1313
goarch: amd64
1414
binary: binary-{{ .OS }}-{{ .Arch }}
1515
ldflags:
16-
- '{{ .Env.VERSION_LDFLAGS }}'
16+
- "{{ .Env.VERSION_LDFLAGS }}"

internal/builders/go/pkg/testdata/releaser-valid-empty-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ goarch: amd64
1313
main:
1414
binary: binary-{{ .OS }}-{{ .Arch }}
1515
ldflags:
16-
- '{{ .Env.VERSION_LDFLAGS }}'
16+
- "{{ .Env.VERSION_LDFLAGS }}"

internal/builders/go/pkg/testdata/releaser-valid-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ goarch: amd64
1313
main: ./relative/main.go
1414
binary: binary-{{ .OS }}-{{ .Arch }}
1515
ldflags:
16-
- '{{ .Env.VERSION_LDFLAGS }}'
16+
- "{{ .Env.VERSION_LDFLAGS }}"

internal/builders/go/pkg/testdata/releaser-valid-no-main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ goos: linux
1212
goarch: amd64
1313
binary: binary-{{ .OS }}-{{ .Arch }}
1414
ldflags:
15-
- '{{ .Env.VERSION_LDFLAGS }}'
15+
- "{{ .Env.VERSION_LDFLAGS }}"

internal/builders/go/testdata/two-ldflags-noldflags.yml

-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ flags:
1111
goos: linux
1212
goarch: amd64
1313
binary: binary-{{ .Os }}-{{ .Arch }}
14-

0 commit comments

Comments
 (0)