Skip to content

Commit 6ed9905

Browse files
committed
Merge branch 'master' into span-events-writer
2 parents 042b27c + a444023 commit 6ed9905

File tree

582 files changed

+802
-733
lines changed

Some content is hidden

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

582 files changed

+802
-733
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ orbs:
240240
command: |
241241
DOCKERIZE_URL="https://github.com/powerman/dockerize/releases/download/v0.17.0/dockerize-$(uname -s | tr '[:upper:]' '[:lower:]')-$(arch | sed 's/aarch64/arm64/')"
242242
DOCKERIZE_URL: $DOCKERIZE_URL
243-
curl --silent --show-error --location --fail --retry 3 --output /usr/local/bin/dockerize $DOCKERIZE_URL
243+
set -e
244+
curl --silent --show-error --location --fail --retry 5 --output /usr/local/bin/dockerize $DOCKERIZE_URL
244245
chmod +x /usr/local/bin/dockerize
245246
dockerize --version
246247
# Wait for containers to start
@@ -275,11 +276,13 @@ orbs:
275276
name: Upload JUnit reports to Datadog
276277
when: always
277278
command: |
279+
set -e
280+
278281
sed -i 's/file="\.\//file="/g' tmp/rspec/*.xml
279282
280283
ls -l tmp/rspec/*.xml
281284
282-
curl -L --fail --retry 3 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
285+
curl -L --fail --retry 5 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
283286
284287
datadog-ci version
285288

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: "monthly"
12+
groups:
13+
gh-actions-packages:
14+
patterns:
15+
- "*"

.github/workflows/add-milestone-to-pull-requests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Checkout code
1616
# Checks out the branch that the pull request is merged into
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
ref: ${{ github.event.pull_request.base.ref }}
2020

@@ -26,7 +26,7 @@ jobs:
2626
2727
- name: Get project milestones
2828
id: milestones
29-
uses: actions/github-script@v7
29+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3030
with:
3131
github-token: ${{secrets.GITHUB_TOKEN}}
3232
script: |
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Update Pull Request
4141
# Update the merged pull request with the milestone starts with the major version
42-
uses: actions/github-script@v7
42+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
4343
with:
4444
github-token: ${{secrets.GITHUB_TOKEN}}
4545
script: |

.github/workflows/build-gem.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
name: Build gem (${{ matrix.type }})
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v4
31-
- uses: ruby/setup-ruby@v1
30+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
- uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0
3232
with:
3333
ruby-version: '3.2'
3434
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -60,7 +60,7 @@ jobs:
6060
run: |
6161
find pkg
6262
- name: Upload artifact
63-
uses: actions/upload-artifact@v4
63+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6464
with:
6565
name: 'datadog-gem-${{ matrix.type }}-gha${{ github.run_id }}-g${{ github.sha }}'
6666
path: 'pkg/*.gem'
@@ -77,14 +77,14 @@ jobs:
7777
- build
7878
steps:
7979
- name: Download artifact
80-
uses: actions/download-artifact@v4
80+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
8181
with:
8282
name: 'datadog-gem-${{ matrix.type }}-gha${{ github.run_id }}-g${{ github.sha }}'
8383
path: 'pkg'
8484
- name: List gem
8585
run: |
8686
find pkg
87-
- uses: ruby/setup-ruby@v1
87+
- uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0
8888
with:
8989
ruby-version: '3.2'
9090
- name: Install gem
@@ -103,7 +103,7 @@ jobs:
103103
if: ${{ inputs.push }}
104104
steps:
105105
- name: Download artifact
106-
uses: actions/download-artifact@v4
106+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
107107
with:
108108
name: 'datadog-gem-${{ matrix.type }}-gha${{ github.run_id }}-g${{ github.sha }}'
109109
path: 'pkg'

.github/workflows/check.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
container: ghcr.io/datadog/images-rb/engines/ruby:3.3
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
- run: bundle lock
17-
- uses: actions/upload-artifact@v4
17+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
1818
id: lockfile
1919
with:
2020
name: 'check-lockfile-${{ github.sha }}-${{ github.run_id }}'
@@ -27,8 +27,8 @@ jobs:
2727
needs: ['build']
2828
container: ghcr.io/datadog/images-rb/engines/ruby:3.3
2929
steps:
30-
- uses: actions/checkout@v4
31-
- uses: actions/download-artifact@v4
30+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
31+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
3232
- run: bundle install
3333
- run: bundle exec rake rubocop
3434

@@ -38,8 +38,8 @@ jobs:
3838
needs: ['build']
3939
container: ghcr.io/datadog/images-rb/engines/ruby:3.3
4040
steps:
41-
- uses: actions/checkout@v4
42-
- uses: actions/download-artifact@v4
41+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
4343
- name: Install dependencies
4444
run: bundle install
4545
- run: bundle exec rake standard
@@ -50,8 +50,8 @@ jobs:
5050
needs: ['build']
5151
container: ghcr.io/datadog/images-rb/engines/ruby:3.3
5252
steps:
53-
- uses: actions/checkout@v4
54-
- uses: actions/download-artifact@v4
53+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
54+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
5555
- name: Install dependencies
5656
run: bundle install
5757
- name: Check for stale signature files
@@ -71,8 +71,8 @@ jobs:
7171
container: ghcr.io/datadog/images-rb/engines/ruby:3.3
7272
steps:
7373
- name: Checkout
74-
uses: actions/checkout@v4
75-
- uses: actions/download-artifact@v4 # requires the lockfile
74+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
75+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 # requires the lockfile
7676
- uses: DataDog/datadog-sca-github-action@main
7777
with:
7878
dd_api_key: ${{ secrets.DD_API_KEY }}
@@ -84,7 +84,7 @@ jobs:
8484
name: dd/static-analysis
8585
runs-on: ubuntu-24.04
8686
steps:
87-
- uses: actions/checkout@v4
87+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8888
- uses: DataDog/datadog-static-analyzer-github-action@v1
8989
with:
9090
dd_api_key: ${{ secrets.DD_API_KEY }}
@@ -97,7 +97,7 @@ jobs:
9797
runs-on: ubuntu-24.04
9898
container: semgrep/semgrep # PENDING: Possible to be rate limited.
9999
steps:
100-
- uses: actions/checkout@v4
100+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
101101
- run: |
102102
semgrep ci \
103103
--include=bin/* \

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v3
32+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
3333
with:
3434
languages: ${{ matrix.language }}
3535
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -40,7 +40,7 @@ jobs:
4040
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4141
# If this step fails, then you should remove it and run the build manually
4242
- name: Autobuild
43-
uses: github/codeql-action/autobuild@v3
43+
uses: github/codeql-action/autobuild@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
4444

4545
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@v3
46+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8

.github/workflows/ensure-changelog-entry.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Check membership
1313
id: membership
14-
uses: actions/github-script@v7
14+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1515
with:
1616
github-token: ${{secrets.GITHUB_TOKEN}}
1717
script: |
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Find existing comment
3737
id: comment
38-
uses: actions/github-script@v7
38+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
3939
with:
4040
github-token: ${{secrets.GITHUB_TOKEN}}
4141
script: |
@@ -53,7 +53,7 @@ jobs:
5353
5454
- name: Check change log entry
5555
id: condition
56-
uses: actions/github-script@v7
56+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5757
with:
5858
github-token: ${{secrets.GITHUB_TOKEN}}
5959
script: |
@@ -70,7 +70,7 @@ jobs:
7070
return isWriteComment
7171
7272
- name: Write comment
73-
uses: actions/github-script@v7
73+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
7474
with:
7575
github-token: ${{secrets.GITHUB_TOKEN}}
7676
script: |

.github/workflows/generate-supported-versions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
contents: read
1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Set up Ruby
21-
uses: ruby/setup-ruby@v1
21+
uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0
2222
with:
2323
bundler-cache: true # runs bundle install
2424
ruby-version: "3.3"
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Create Pull Request
3232
id: cpr
33-
uses: peter-evans/create-pull-request@v7
33+
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
3434
with:
3535
token: ${{ secrets.GHA_PAT }}
3636
branch: auto-generate/update-supported-versions

.github/workflows/lock-dependency.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
pr_base_ref: ${{ steps.pr.outputs.pr.base.ref }}
3232
steps:
3333
# Limitation with pull_request trigger: https://github.com/8BitJonny/gh-get-current-pr/tree/3.0.0/?tab=readme-ov-file#limitations
34-
- uses: 8BitJonny/gh-get-current-pr@3.0.0
34+
- uses: 8BitJonny/gh-get-current-pr@08e737c57a3a4eb24cec6487664b243b77eb5e36 # v3.0.0
3535
id: pr
3636
with:
3737
filterOutClosed: true # Don't trigger on commits with closed PRs, including merges into `master`.
@@ -44,8 +44,8 @@ jobs:
4444
outputs:
4545
changes: ${{ steps.changes.outputs.dependencies }}
4646
steps:
47-
- uses: actions/checkout@v4
48-
- uses: dorny/paths-filter@v3
47+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
4949
id: changes
5050
with:
5151
# This is the best effort to get the diff comparison.
@@ -92,15 +92,15 @@ jobs:
9292
env:
9393
BUNDLE_WITHOUT: check
9494
steps:
95-
- uses: actions/checkout@v4
95+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9696
- run: |
9797
ruby -v
9898
gem -v
9999
bundler -v
100100
- run: bundle install
101101
- run: bundle exec rake dependency:generate
102102
- run: bundle exec rake dependency:lock
103-
- uses: actions/upload-artifact@v4
103+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
104104
with:
105105
name: lock-dependency-${{ github.run_id }}-${{ matrix.engine.name }}-${{ matrix.engine.version }}
106106
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}*
@@ -113,15 +113,15 @@ jobs:
113113
needs: lock
114114
runs-on: ubuntu-22.04
115115
steps:
116-
- uses: actions/checkout@v4
116+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
117117
with:
118118
token: ${{ secrets.GHA_PAT }}
119-
- uses: actions/download-artifact@v4
119+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
120120
with:
121121
path: gemfiles
122122
pattern: lock-dependency-${{ github.run_id }}-*
123123
merge-multiple: true
124-
- uses: stefanzweifel/git-auto-commit-action@v5
124+
- uses: stefanzweifel/git-auto-commit-action@e348103e9026cc0eee72ae06630dbe30c8bf7a79 # v5.1.0
125125
with:
126126
file_pattern: 'gemfiles/*'
127127
commit_message: "[🤖] Lock Dependency: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"

.github/workflows/nix.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- name: Check CPU arch
4343
run: |
4444
test "$(uname -m)" = "${{ matrix.platform.cpu }}"
45-
- uses: actions/checkout@v4
46-
- uses: DeterminateSystems/nix-installer-action@main
45+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
46+
- uses: DeterminateSystems/nix-installer-action@dea7810afd9d4c98556c8ec68cf361bd5b648eaa # main
4747
- name: Print ruby version
4848
run: |
4949
nix develop --command which ruby

.github/workflows/publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
outputs:
1515
version: ${{ steps.version.outputs.version }}
1616
steps:
17-
- uses: actions/checkout@v4
18-
- uses: ruby/setup-ruby@v1
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0
1919
with:
2020
ruby-version: '3.3.7'
2121

@@ -40,7 +40,7 @@ jobs:
4040
# Check if the commit has passed all Github checks
4141
# API: https://docs.github.com/en/rest/checks/runs?apiVersion=2022-11-28#list-check-runs-for-a-git-reference
4242
- name: Verify check runs
43-
uses: actions/github-script@v7
43+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
4444
with:
4545
script: |
4646
const checkRuns = await github.paginate(github.rest.checks.listForRef, {
@@ -64,7 +64,7 @@ jobs:
6464
# Check if the commit has passed external CI checks
6565
# API: https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#get-the-combined-status-for-a-specific-reference
6666
- name: Verify commit status
67-
uses: actions/github-script@v7
67+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
6868
with:
6969
script: |
7070
const { data: status } = await github.rest.repos.getCombinedStatusForRef({
@@ -108,12 +108,13 @@ jobs:
108108
env:
109109
SKIP_SIMPLECOV: 1
110110
steps:
111-
- uses: actions/checkout@v4
111+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
112112
- name: Set up Ruby
113-
uses: ruby/setup-ruby@v1
113+
uses: ruby/setup-ruby@8388f20e6a9c43cd241131b678469a9f89579f37 # v1.216.0
114114
with:
115115
ruby-version: '3.3.7'
116-
- uses: rubygems/release-gem@v1
116+
- run: bundle install
117+
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
117118
with:
118119
attestations: false # PENDING decision for attestations
119120

.github/workflows/pull-request-labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ jobs:
99
pull-requests: write
1010
runs-on: ubuntu-22.04
1111
steps:
12-
- uses: actions/labeler@v5
12+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1313
with:
1414
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)