Skip to content

Fix yamllint errors #340

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

Merged
merged 2 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: weekly
commit-message:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: weekly
commit-message:
prefix: ":seedling:"
open-pull-requests-limit: 10
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
commit-message:
commit-message:
prefix: ":seedling:"
61 changes: 30 additions & 31 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ main, '*' ]
branches: [main, "*"]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main]
schedule:
- cron: '21 0 * * 2'
- cron: "21 0 * * 2"

jobs:
analyze:
Expand All @@ -32,41 +32,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
language: ["go"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# 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
# queries: security-extended,security-and-quality

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

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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/pre-submit.e2e.generic.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 #v2.4.0
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
with:
name: ${{ needs.build.outputs.attestation-name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 #v2.4.0
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0
- uses: actions/download-artifact@fb598a63ae348fa914e94cd0ff38f362e927b741
with:
name: ${{ needs.build.outputs.go-binary-name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ goos: linux
goarch: amd64
binary: binary-{{ .OS }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'
- "{{ .Env.VERSION_LDFLAGS }}"
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ goarch: amd64
main: /not/relative
binary: binary-{{ .OS }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'
- "{{ .Env.VERSION_LDFLAGS }}"
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ flags:
- -trimpath
- -tags=netgo

#TODO:
#mod_timestamp: '{{ .CommitTimestamp }}'
# TODO:
# mod_timestamp: '{{ .CommitTimestamp }}'
goos: linux
goarch: amd64
binary: binary-{{ .OS }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'
- "{{ .Env.VERSION_LDFLAGS }}"
6 changes: 3 additions & 3 deletions internal/builders/go/pkg/testdata/releaser-noversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ flags:
- -trimpath
- -tags=netgo

#TODO:
#mod_timestamp: '{{ .CommitTimestamp }}'
# TODO:
# mod_timestamp: '{{ .CommitTimestamp }}'
goos: linux
goarch: amd64
binary: binary-{{ .OS }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'
- "{{ .Env.VERSION_LDFLAGS }}"
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ goarch: amd64
main:
binary: binary-{{ .OS }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'
- "{{ .Env.VERSION_LDFLAGS }}"
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ goarch: amd64
main: ./relative/main.go
binary: binary-{{ .OS }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'
- "{{ .Env.VERSION_LDFLAGS }}"
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ goos: linux
goarch: amd64
binary: binary-{{ .OS }}-{{ .Arch }}
ldflags:
- '{{ .Env.VERSION_LDFLAGS }}'
- "{{ .Env.VERSION_LDFLAGS }}"
1 change: 0 additions & 1 deletion internal/builders/go/testdata/two-ldflags-noldflags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ flags:
goos: linux
goarch: amd64
binary: binary-{{ .Os }}-{{ .Arch }}