Skip to content

Commit 73f6851

Browse files
committed
Revert unnecessary line ending changes in workflow and config files
1 parent 3fc6b69 commit 73f6851

10 files changed

Lines changed: 554 additions & 554 deletions

File tree

.codacy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
exclude_paths:
2-
- "**/*_test.go"
3-
4-
# Disable specific rules
5-
engines:
6-
markdownlint:
7-
enabled: true
8-
ignore_patterns:
9-
- markdownlint_MD013 # Line length rule
1+
exclude_paths:
2+
- "**/*_test.go"
3+
4+
# Disable specific rules
5+
engines:
6+
markdownlint:
7+
enabled: true
8+
ignore_patterns:
9+
- markdownlint_MD013 # Line length rule

.github/workflows/codacy.yml

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
6-
# This workflow checks out code, performs a Codacy security scan
7-
# and integrates the results with the
8-
# GitHub Advanced Security code scanning feature. For more information on
9-
# the Codacy security scan action usage and parameters, see
10-
# https://github.com/codacy/codacy-analysis-cli-action.
11-
# For more information on Codacy Analysis CLI in general, see
12-
# https://github.com/codacy/codacy-analysis-cli.
13-
14-
name: Codacy Security Scan
15-
16-
on:
17-
push:
18-
branches: [ "main" ]
19-
pull_request:
20-
# The branches below must be a subset of the branches above
21-
branches: [ "main" ]
22-
schedule:
23-
- cron: '44 14 * * 0'
24-
25-
permissions:
26-
contents: read
27-
28-
jobs:
29-
codacy-security-scan:
30-
permissions:
31-
contents: read # for actions/checkout to fetch code
32-
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
33-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
34-
name: Codacy Security Scan
35-
runs-on: ubuntu-latest
36-
steps:
37-
# Checkout the repository to the GitHub Actions runner
38-
- name: Checkout code
39-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
40-
41-
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
42-
- name: Run Codacy Analysis CLI
43-
uses: codacy/codacy-analysis-cli-action@97bf5df3c09e75f5bcd72695998f96ebd701846e # v4
44-
with:
45-
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
46-
# You can also omit the token and run the tools that support default configurations
47-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
48-
verbose: true
49-
output: results.sarif
50-
format: sarif
51-
# Adjust severity of non-security issues
52-
gh-code-scanning-compat: true
53-
# Force 0 exit code to allow SARIF file generation
54-
# This will handover control about PR rejection to the GitHub side
55-
max-allowed-issues: 2147483647
56-
57-
# Upload the SARIF file generated in the previous step
58-
- name: Upload SARIF results file
59-
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
60-
with:
61-
sarif_file: results.sarif
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow checks out code, performs a Codacy security scan
7+
# and integrates the results with the
8+
# GitHub Advanced Security code scanning feature. For more information on
9+
# the Codacy security scan action usage and parameters, see
10+
# https://github.com/codacy/codacy-analysis-cli-action.
11+
# For more information on Codacy Analysis CLI in general, see
12+
# https://github.com/codacy/codacy-analysis-cli.
13+
14+
name: Codacy Security Scan
15+
16+
on:
17+
push:
18+
branches: [ "main" ]
19+
pull_request:
20+
# The branches below must be a subset of the branches above
21+
branches: [ "main" ]
22+
schedule:
23+
- cron: '44 14 * * 0'
24+
25+
permissions:
26+
contents: read
27+
28+
jobs:
29+
codacy-security-scan:
30+
permissions:
31+
contents: read # for actions/checkout to fetch code
32+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
33+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
34+
name: Codacy Security Scan
35+
runs-on: ubuntu-latest
36+
steps:
37+
# Checkout the repository to the GitHub Actions runner
38+
- name: Checkout code
39+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
40+
41+
# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
42+
- name: Run Codacy Analysis CLI
43+
uses: codacy/codacy-analysis-cli-action@97bf5df3c09e75f5bcd72695998f96ebd701846e # v4
44+
with:
45+
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
46+
# You can also omit the token and run the tools that support default configurations
47+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
48+
verbose: true
49+
output: results.sarif
50+
format: sarif
51+
# Adjust severity of non-security issues
52+
gh-code-scanning-compat: true
53+
# Force 0 exit code to allow SARIF file generation
54+
# This will handover control about PR rejection to the GitHub side
55+
max-allowed-issues: 2147483647
56+
57+
# Upload the SARIF file generated in the previous step
58+
- name: Upload SARIF results file
59+
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
60+
with:
61+
sarif_file: results.sarif
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,67 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
12-
name: "Analysis"
13-
14-
on:
15-
push:
16-
branches: [ main, dev, feature/* ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ main, dev ]
20-
schedule:
21-
- cron: '32 7 * * 2'
22-
23-
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
28-
strategy:
29-
fail-fast: false
30-
matrix:
31-
language: ['go']
32-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33-
# Learn more:
34-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35-
36-
steps:
37-
- name: Checkout repository
38-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
39-
40-
# Initializes the CodeQL tools for scanning.
41-
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
43-
with:
44-
languages: ${{ matrix.language }}
45-
# If you wish to specify custom queries, you can do so here or in a config file.
46-
# By default, queries listed here will override any specified in a config file.
47-
# Prefix the list here with "+" to use these queries and those in the config file.
48-
# queries: ./path/to/local/query, your-org/your-repo/queries@applicationRole
49-
50-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51-
# If this step fails, then you should remove it and run the build manually (see below)
52-
- name: Autobuild
53-
uses: github/codeql-action/autobuild@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
54-
55-
# ℹ️ Command-line programs to run using the OS shell.
56-
# 📚 https://git.io/JvXDl
57-
58-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59-
# and modify them (or add more) to build your code if your project
60-
# uses a compiled language
61-
62-
#- run: |
63-
# make bootstrap
64-
# make release
65-
66-
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "Analysis"
13+
14+
on:
15+
push:
16+
branches: [ main, dev, feature/* ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main, dev ]
20+
schedule:
21+
- cron: '32 7 * * 2'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
language: ['go']
32+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33+
# Learn more:
34+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
39+
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@applicationRole
49+
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3
54+
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
57+
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
61+
62+
#- run: |
63+
# make bootstrap
64+
# make release
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3

.github/workflows/coverage.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
name: Coverage
2-
3-
on:
4-
push:
5-
branches: [ main, dev, feature/* ]
6-
pull_request:
7-
branches: [ main ]
8-
9-
jobs:
10-
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15-
with:
16-
fetch-depth: 2
17-
18-
- name: Set up Go
19-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
20-
with:
21-
go-version-file: ./go.mod
22-
23-
- name: Run coverage
24-
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
25-
26-
- name: Upload coverage to Codecov
27-
run: bash <(curl -s https://codecov.io/bash)
1+
name: Coverage
2+
3+
on:
4+
push:
5+
branches: [ main, dev, feature/* ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
15+
with:
16+
fetch-depth: 2
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
20+
with:
21+
go-version-file: ./go.mod
22+
23+
- name: Run coverage
24+
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
25+
26+
- name: Upload coverage to Codecov
27+
run: bash <(curl -s https://codecov.io/bash)
Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
# Dependency Review Action
2-
#
3-
# This Action will scan dependency manifest files that change as part of a Pull Reqest, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4-
#
5-
# Source repository: https://github.com/actions/dependency-review-action
6-
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7-
name: 'Dependency Review'
8-
on:
9-
pull_request:
10-
11-
permissions:
12-
contents: read
13-
14-
jobs:
15-
dependency-review:
16-
runs-on: ubuntu-latest
17-
steps:
18-
- name: 'Checkout Repository'
19-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20-
- name: 'Dependency Review'
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Reqest, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4+
#
5+
# Source repository: https://github.com/actions/dependency-review-action
6+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
name: 'Dependency Review'
8+
on:
9+
pull_request:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
dependency-review:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: 'Checkout Repository'
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+
- name: 'Dependency Review'
2121
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4

0 commit comments

Comments
 (0)