Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .github/actions/datadog-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Install @datadog/datadog-ci from npm and add it to PATH.
runs:
using: composite
steps:
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '20'

Expand Down
6 changes: 6 additions & 0 deletions .github/actions/node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: "Version identifier of the version to use."
required: false
default: 'latest'
registry-url:
description: "npm registry URL to configure for publishing. Leave unset for jobs that don't publish."
required: false
default: ''
runs:
using: composite
steps:
Expand All @@ -15,6 +19,7 @@ runs:
continue-on-error: true
with:
version: ${{ inputs.version }}
registry-url: ${{ inputs.registry-url }}
- if: steps.attempt.outcome == 'failure'
shell: bash
run: sleep 60
Expand All @@ -23,3 +28,4 @@ runs:
uses: ./.github/actions/node/setup
with:
version: ${{ inputs.version }}
registry-url: ${{ inputs.registry-url }}
12 changes: 10 additions & 2 deletions .github/actions/node/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
description: "Version identifier of the version to use."
required: false
default: 'latest'
registry-url:
description: "npm registry URL to configure for publishing. Leave unset for jobs that don't publish."
required: false
default: ''
runs:
using: composite
steps:
Expand Down Expand Up @@ -41,10 +45,14 @@ runs:
esac
echo "version=$version" >> "$GITHUB_OUTPUT"

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
# registry-url is left empty for jobs that don't publish: setup-node only writes an
# .npmrc auth placeholder when it's set, and since v7.0.0 no longer backstops that
# placeholder with a dummy NODE_AUTH_TOKEN, so an always-on registry-url broke Yarn
# Classic (it hard-errors on an unresolved ${NODE_AUTH_TOKEN} env reference in .npmrc).
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ steps.node-version.outputs.version }}
registry-url: ${{ inputs.registry-url || 'https://registry.npmjs.org' }}
registry-url: ${{ inputs.registry-url }}

# The shipped package.json pins engines.node to the supported runtime range, but CI keeps
# running the full suite on Node 18/20. Widen the field to >=18 for this checkout so the
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/testagent/logs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Preserve untracked artifacts (coverage/, .nyc_output/, node_modules/) produced by earlier
# test steps. Without this, the default `git clean -ffdx` wipes them before subsequent
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/testagent/start/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "Starts the APM Test Agent image with environment."
runs:
using: composite
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- run: docker compose up -d testagent || docker compose up -d testagent
shell: bash
- name: Wait for test agent to be ready
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/aiguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/node/latest
- uses: ./.github/actions/install
- run: npm run test:aiguard:ci
Expand All @@ -36,7 +36,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/node/oldest-maintenance-lts
- uses: ./.github/actions/install
- run: npm run test:aiguard:ci
Expand All @@ -60,7 +60,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/node
with:
version: 24.14.1 # TODO: remove pin when https://github.com/nodejs/node/issues/62991 is fixed
Expand All @@ -86,7 +86,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/node
with:
version: ${{ matrix.version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/all-green.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
with:
scope: DataDog/dd-trace-js
policy: all-green
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
sparse-checkout-cone-mode: false
sparse-checkout: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/apm-capabilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/node/latest
- uses: ./.github/actions/install
- run: npm run test:trace:core:ci
Expand All @@ -47,7 +47,7 @@ jobs:
matrix:
node-version: [oldest, maintenance, active, latest]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/node
with:
version: ${{ matrix.node-version }}
Expand All @@ -66,7 +66,7 @@ jobs:
permissions:
id-token: write
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./.github/actions/node
with:
version: 24.14.1 # TODO: remove pin when https://github.com/nodejs/node/issues/62991 is fixed
Expand Down
Loading
Loading