Skip to content

Commit 34e2afa

Browse files
committed
chore(.github/workflows): Fix action formats and issues
Signed-off-by: Kemal Akkoyun <kemal.akkoyun@datadoghq.com>
1 parent 5048136 commit 34e2afa

File tree

9 files changed

+58
-69
lines changed

9 files changed

+58
-69
lines changed

.github/settings.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
branches:
32
- name: main
43
protection:

.github/stale.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,15 @@ pull:
6868
daysUntilClose: 14
6969
daysUntilStale: 60
7070
markComment: >
71-
Hello 👋 Looks like there was no activity on this amazing PR for the last 60 days.
72-
**Do you mind updating us on the status?** Is there anything we can help with? If you plan to still work on it, just comment on this PR or push a commit. Thanks! 🤗
73-
74-
If there will be no activity in the next 2 weeks, this issue will be closed (we can always reopen a PR if you get back to this!).
71+
Hello 👋 Looks like there was no activity on this amazing PR for the last 60 days. **Do you mind updating us on the status?** Is there anything we can help with? If you plan to still work on it, just comment on this PR or push a commit. Thanks! 🤗 #magic___^_^___line If there will be no activity in the next 2 weeks, this issue will be closed (we can always reopen a PR if you get back to this!).
7572
# unmarkComment: No need for unmark comment.
7673
closeComment: >
7774
Closing for now as promised, let us know if you need this to be reopened! 🤗
7875
issues:
7976
daysUntilClose: 90
8077
daysUntilStale: 180
8178
markComment: >
82-
Hello 👋 Looks like there was no activity on this issue for the last 3 months.
83-
**Do you mind updating us on the status?** Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
84-
85-
If there will be no activity in the next 4 weeks, this issue will be closed (we can always reopen an issue if we need!).
79+
Hello 👋 Looks like there was no activity on this issue for the last 3 months. **Do you mind updating us on the status?** Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗 #magic___^_^___line If there will be no activity in the next 4 weeks, this issue will be closed (we can always reopen an issue if we need!).
8680
# unmarkComment: No need for unmark comment.
8781
closeComment: >
8882
Closing for now as promised, let us know if you need this to be reopened! 🤗

.github/workflows/codeql-analysis.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ 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:
2121
- cron: '31 21 * * 6'
2222

@@ -40,39 +40,39 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
language: [ 'go' ]
43+
language: ['go']
4444
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
4545
# Learn more about CodeQL language support at https://git.io/codeql-language-support
4646

4747
steps:
48-
- name: Checkout repository
49-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
48+
- name: Checkout repository
49+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5050

51-
# Initializes the CodeQL tools for scanning.
52-
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
54-
with:
55-
languages: ${{ matrix.language }}
56-
# If you wish to specify custom queries, you can do so here or in a config file.
57-
# By default, queries listed here will override any specified in a config file.
58-
# Prefix the list here with "+" to use these queries and those in the config file.
59-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
51+
# Initializes the CodeQL tools for scanning.
52+
- name: Initialize CodeQL
53+
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
54+
with:
55+
languages: ${{ matrix.language }}
56+
# If you wish to specify custom queries, you can do so here or in a config file.
57+
# By default, queries listed here will override any specified in a config file.
58+
# Prefix the list here with "+" to use these queries and those in the config file.
59+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
6060

61-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
62-
# If this step fails, then you should remove it and run the build manually (see below)
63-
- name: Autobuild
64-
uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
61+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
62+
# If this step fails, then you should remove it and run the build manually (see below)
63+
- name: Autobuild
64+
uses: github/codeql-action/autobuild@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
6565

66-
# ℹ️ Command-line programs to run using the OS shell.
67-
# 📚 https://git.io/JvXDl
66+
# ℹ️ Command-line programs to run using the OS shell.
67+
# 📚 https://git.io/JvXDl
6868

69-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
70-
# and modify them (or add more) to build your code if your project
71-
# uses a compiled language
69+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
70+
# and modify them (or add more) to build your code if your project
71+
# uses a compiled language
7272

73-
#- run: |
74-
# make bootstrap
75-
# make release
73+
#- run: |
74+
# make bootstrap
75+
# make release
7676

77-
- name: Perform CodeQL Analysis
78-
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5
77+
- name: Perform CodeQL Analysis
78+
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v3.29.5

.github/workflows/container_description.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
---
21
name: Push README to Docker Hub
32
on:
43
push:
54
paths:
65
- "README.md"
76
- "README-containers.md"
87
- ".github/workflows/container_description.yml"
9-
branches: [ main, master ]
8+
branches: [main, master]
109

1110
permissions:
1211
contents: read
@@ -22,7 +21,7 @@ jobs:
2221
with:
2322
persist-credentials: false
2423
- name: Set docker hub repo name
25-
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
24+
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> "$GITHUB_ENV"
2625
- name: Push README to Dockerhub
2726
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
2827
env:
@@ -46,9 +45,9 @@ jobs:
4645
with:
4746
persist-credentials: false
4847
- name: Set quay.io org name
49-
run: echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
48+
run: echo "DOCKER_REPO=$(echo "quay.io/${GITHUB_REPOSITORY_OWNER}" | tr -d '-')" >> "$GITHUB_ENV"
5049
- name: Set quay.io repo name
51-
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
50+
run: echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> "$GITHUB_ENV"
5251
- name: Push README to quay.io
5352
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
5453
env:

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
# This action is synced from https://github.com/prometheus/prometheus
32
name: golangci-lint
43
on:
@@ -12,14 +11,14 @@ on:
1211
- ".golangci.yml"
1312
pull_request:
1413

15-
permissions: # added using https://github.com/step-security/secure-repo
14+
permissions: # added using https://github.com/step-security/secure-repo
1615
contents: read
1716

1817
jobs:
1918
golangci:
2019
permissions:
21-
contents: read # for actions/checkout to fetch code
22-
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
20+
contents: read # for actions/checkout to fetch code
21+
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
2322
name: lint
2423
runs-on: ubuntu-latest
2524
steps:

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
schedule:
1010
- cron: '22 1 * * 0'
1111
push:
12-
branches: [ "main" ]
12+
branches: ["main"]
1313

1414
# Declare default permissions as read only.
1515
permissions: read-all

.github/workflows/update-go-versions.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Generate Metric files for new Go version
32

43
on:

.github/workflows/validate.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Validate
32
on:
43
pull_request:
@@ -22,26 +21,26 @@ jobs:
2221
name: Fetch supported Go versions
2322
runs-on: ubuntu-latest
2423
outputs:
25-
supported_versions: ${{ steps.matrix.outputs.supported_versions }}
24+
supported_versions: ${{ steps.matrix.outputs.supported_versions }}
2625
steps:
2726
- name: Checkout code
2827
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2928
- name: Read supported_go_versions.txt
3029
id: matrix
3130
run: |
32-
versions=$(cat supported_go_versions.txt)
33-
matrix="[$(echo "$versions" | sed 's/\(.*\)/"\1"/' | paste -s -d,)]"
34-
echo "supported_versions=$matrix" >> $GITHUB_OUTPUT
31+
versions="$(cat supported_go_versions.txt)"
32+
matrix="[$(echo "$versions" | sed 's/\(.*\)/"\1"/' | paste -s -d,)]"
33+
echo "supported_versions=$matrix" >> "$GITHUB_OUTPUT"
3534
3635
test:
3736
name: Tests (${{ matrix.go_version }})
3837
runs-on: ubuntu-latest
39-
needs: supportedVersions
38+
needs: supported_versions
4039
# Set fail-fast to false to ensure all Go versions are tested regardless of failures
4140
strategy:
4241
fail-fast: false
4342
matrix:
44-
go_version: ${{ fromJSON(needs.supportedVersions.outputs.supported_versions) }}
43+
go_version: ${{ fromJSON(needs.supported_versions.outputs.supported_versions) }}
4544
# Define concurrency at the job level for matrix jobs
4645
concurrency:
4746
group: ${{ github.workflow }}-test-${{ matrix.go_version }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}

exp/api/remote/genproto/buf.gen.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
version: v2
33

44
plugins:
5-
- remote: buf.build/protocolbuffers/go:v1.31.0
6-
out: .
7-
opt:
8-
- Mio/prometheus/write/v2/types.proto=./v2
5+
- remote: buf.build/protocolbuffers/go:v1.31.0
6+
out: .
7+
opt:
8+
- Mio/prometheus/write/v2/types.proto=./v2
99

10-
# vtproto for efficiency utilities like pooling etc.
11-
# https://buf.build/community/planetscale-vtprotobuf?version=v0.6.0
12-
- remote: buf.build/community/planetscale-vtprotobuf:v0.6.0
13-
out: .
14-
opt:
15-
- Mio/prometheus/write/v2/types.proto=./v2
16-
- features=marshal+unmarshal+size
10+
# vtproto for efficiency utilities like pooling etc.
11+
# https://buf.build/community/planetscale-vtprotobuf?version=v0.6.0
12+
- remote: buf.build/community/planetscale-vtprotobuf:v0.6.0
13+
out: .
14+
opt:
15+
- Mio/prometheus/write/v2/types.proto=./v2
16+
- features=marshal+unmarshal+size
1717

1818
inputs:
19-
- module: buf.build/prometheus/prometheus:5b212ab78fb7460e831cf7ff2d83e385
20-
types:
21-
- "io.prometheus.write.v2.Request"
19+
- module: buf.build/prometheus/prometheus:5b212ab78fb7460e831cf7ff2d83e385
20+
types:
21+
- "io.prometheus.write.v2.Request"

0 commit comments

Comments
 (0)