Skip to content

Commit c11dda8

Browse files
authored
Merge branch 'main' into joe/hex-parsing
2 parents 396c152 + 5da6cd2 commit c11dda8

File tree

342 files changed

+101311
-5053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

342 files changed

+101311
-5053
lines changed

.clomonitor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exemptions:
2+
- check: artifacthub_badge
3+
reason: "Artifact Hub doesn't support Go packages"

.github/workflows/benchmark.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ env:
1212
DEFAULT_GO_VERSION: "~1.24.0"
1313
jobs:
1414
benchmark:
15+
permissions:
16+
contents: write # required for pushing to gh-pages branch
1517
name: Benchmarks
16-
runs-on: self-hosted
18+
runs-on: equinix-bare-metal
1719
steps:
1820
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19-
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
21+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2022
with:
2123
go-version: ${{ env.DEFAULT_GO_VERSION }}
2224
check-latest: true

.github/workflows/ci.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
fetch-depth: 0 ## Needed for "Set internal/tools/go.mod timestamp" step.
2626
- name: Install Go
27-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
27+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2828
with:
2929
go-version: ${{ env.DEFAULT_GO_VERSION }}
3030
check-latest: true
@@ -62,7 +62,7 @@ jobs:
6262
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
6363
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
6464
- name: Install Go
65-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
65+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
6666
with:
6767
go-version: ${{ env.DEFAULT_GO_VERSION }}
6868
cache-dependency-path: "**/go.sum"
@@ -75,7 +75,7 @@ jobs:
7575
- name: Checkout Repo
7676
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7777
- name: Install Go
78-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
78+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
7979
with:
8080
go-version: ${{ env.DEFAULT_GO_VERSION }}
8181
check-latest: true
@@ -89,7 +89,7 @@ jobs:
8989
- name: Checkout Repo
9090
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9191
- name: Install Go
92-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
92+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
9393
with:
9494
go-version: ${{ env.DEFAULT_GO_VERSION }}
9595
check-latest: true
@@ -103,7 +103,7 @@ jobs:
103103
- name: Checkout Repo
104104
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
105105
- name: Install Go
106-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
106+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
107107
with:
108108
go-version: ${{ env.DEFAULT_GO_VERSION }}
109109
check-latest: true
@@ -120,11 +120,13 @@ jobs:
120120
runs-on: ubuntu-latest
121121
needs: [test-coverage]
122122
steps:
123+
- name: Checkout Repo
124+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
123125
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
124126
with:
125127
pattern: coverage-artifacts-${{ env.DEFAULT_GO_VERSION }}
126128
- name: Upload coverage report
127-
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
129+
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
128130
with:
129131
fail_ci_if_error: true
130132
files: ./coverage.txt
@@ -154,7 +156,7 @@ jobs:
154156
- name: Checkout code
155157
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
156158
- name: Install Go
157-
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
159+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
158160
with:
159161
go-version: ${{ matrix.go-version }}
160162
check-latest: true

.github/workflows/close-stale.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ on:
55
- cron: "8 5 * * *" # arbitrary time not to DDOS GitHub
66

77
permissions:
8-
issues: write
9-
pull-requests: write
8+
contents: read
9+
1010
jobs:
1111
stale:
12+
permissions:
13+
issues: write
14+
pull-requests: write
1215
runs-on: ubuntu-latest
1316
steps:
1417
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ jobs:
3232

3333
# Initializes the CodeQL tools for scanning.
3434
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
35+
uses: github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
3636
with:
3737
languages: go
3838

3939
- name: Autobuild
40-
uses: github/codeql-action/autobuild@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
40+
uses: github/codeql-action/autobuild@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4141

4242
- name: Perform CodeQL Analysis
43-
uses: github/codeql-action/analyze@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
43+
uses: github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
4444

.github/workflows/fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

17-
- uses: fossas/fossa-action@c0a7d013f84c8ee5e910593186598625513cc1e4 # v1.6.0
17+
- uses: fossas/fossa-action@3ebcea1862c6ffbd5cf1b4d0bd6b3fe7bd6f2cac # v1.7.0
1818
with:
1919
api-key: ${{secrets.FOSSA_API_KEY}}
2020
team: OpenTelemetry

.github/workflows/links-fail-fast.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,32 @@ on:
1010
permissions: read-all
1111

1212
jobs:
13+
changedfiles:
14+
name: changed files
15+
runs-on: ubuntu-latest
16+
env:
17+
PR_HEAD: ${{ github.event.pull_request.head.sha }}
18+
outputs:
19+
files: ${{ steps.changes.outputs.files }}
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
with:
24+
fetch-depth: 0
25+
- name: Get changed files
26+
id: changes
27+
run: |
28+
files=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main $PR_HEAD) $PR_HEAD | xargs)
29+
30+
# Used for debugging.
31+
echo "files=$files"
32+
33+
echo "files=$files" >> $GITHUB_OUTPUT
34+
1335
check-links:
1436
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
37+
needs: changedfiles
38+
if: ${{needs.changedfiles.outputs.files}}
1739
steps:
1840
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1941

@@ -26,12 +48,13 @@ jobs:
2648
restore-keys: cache-lychee-
2749

2850
- name: Link Checker
29-
uses: lycheeverse/lychee-action@1d97d84f0bc547f7b25f4c2170d87d810dc2fb2c # v2.4.0
51+
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
3052
env:
3153
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3254
with:
3355
fail: true
34-
args: --max-concurrency 5 --cache --max-cache-age 1d --cache-exclude-status 300..=599 .
56+
failIfEmpty: false
57+
args: --max-concurrency 5 --cache --max-cache-age 1d --cache-exclude-status 300..=599 ${{needs.changedfiles.outputs.files}}
3558

3659
- name: Save lychee cache
3760
if: always()

.github/workflows/links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
check-links:
1515
runs-on: ubuntu-latest
1616
permissions:
17-
contents: read
17+
issues: write # required for creating issues from link checker reports
1818
steps:
1919
- name: Checkout Repo
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Link Checker
3232
id: lychee
33-
uses: lycheeverse/lychee-action@1d97d84f0bc547f7b25f4c2170d87d810dc2fb2c # v2.4.0
33+
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
with:

.github/workflows/markdown.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ permissions: read-all
1212

1313
jobs:
1414
lint-markdown:
15+
permissions:
16+
issues: write # required for creating issues from markdown lint reports
1517
runs-on: ubuntu-latest
1618
steps:
1719
- name: Checkout Repo

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
persist-credentials: false
3232

3333
- name: "Run analysis"
34-
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
34+
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
3535
with:
3636
results_file: results.sarif
3737
results_format: sarif
@@ -58,6 +58,6 @@ jobs:
5858
# Upload the results to GitHub's code scanning dashboard (optional).
5959
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
6060
- name: "Upload to code-scanning"
61-
uses: github/codeql-action/upload-sarif@60168efe1c415ce0f5521ea06d5c2062adbeed1b # v3.28.17
61+
uses: github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
6262
with:
6363
sarif_file: results.sarif

0 commit comments

Comments
 (0)