diff --git a/.github/workflows/api-check.yml b/.github/workflows/api-check.yml index 82aa5b5852b..0ad58582dae 100644 --- a/.github/workflows/api-check.yml +++ b/.github/workflows/api-check.yml @@ -7,11 +7,16 @@ on: - 'scripts/apiextractor/**' - '.github/workflows/api-check.yml' +permissions: + contents: read + jobs: check-api-stability: runs-on: ubuntu-latest steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Setup Go and development tools uses: ./.github/actions/setup-go diff --git a/.github/workflows/appsec.yml b/.github/workflows/appsec.yml index 3c657255dda..e9fdf00fdbc 100644 --- a/.github/workflows/appsec.yml +++ b/.github/workflows/appsec.yml @@ -74,6 +74,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Compute cache configuration @@ -114,6 +115,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Restore Go modules cache @@ -219,6 +221,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Restore Go modules cache @@ -305,6 +308,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Restore Go modules cache diff --git a/.github/workflows/code_freeze_end.yml b/.github/workflows/code_freeze_end.yml index 7e9a3a229b5..ff841ec134e 100644 --- a/.github/workflows/code_freeze_end.yml +++ b/.github/workflows/code_freeze_end.yml @@ -35,6 +35,8 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Check for remaining freeze milestones id: check_remaining diff --git a/.github/workflows/code_freeze_start.yml b/.github/workflows/code_freeze_start.yml index 7571d023a63..ac2b23158fe 100644 --- a/.github/workflows/code_freeze_start.yml +++ b/.github/workflows/code_freeze_start.yml @@ -43,6 +43,8 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Freeze PRs uses: ./.github/actions/pr-status-updater diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 5d1b9b28944..815c3240e24 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -31,6 +31,7 @@ jobs: - name: Checkout repository uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} # Initializes the CodeQL tools for scanning. diff --git a/.github/workflows/datadog-static-analysis.yml b/.github/workflows/datadog-static-analysis.yml index 93f13cd0171..d81aa4dafd4 100644 --- a/.github/workflows/datadog-static-analysis.yml +++ b/.github/workflows/datadog-static-analysis.yml @@ -13,6 +13,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Check code meets quality and security standards id: datadog-static-analysis uses: DataDog/datadog-static-analyzer-github-action@8340f18875fcefca86844b5f947ce2431387e552 # v3.0.0 diff --git a/.github/workflows/docker-build-and-push.yml b/.github/workflows/docker-build-and-push.yml index f8bb6cd8870..733468e74eb 100644 --- a/.github/workflows/docker-build-and-push.yml +++ b/.github/workflows/docker-build-and-push.yml @@ -39,6 +39,10 @@ on: type: string default: '' +permissions: + contents: read + packages: write + jobs: build-images: runs-on: ${{ matrix.platform == 'linux/amd64' && 'ubuntu-latest' || 'ubuntu-24.04-arm' }} @@ -54,6 +58,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.commit_sha }} - name: Set up Docker Buildx diff --git a/.github/workflows/dynamic-checks.yml b/.github/workflows/dynamic-checks.yml index a46a0f387b1..e648543cb79 100644 --- a/.github/workflows/dynamic-checks.yml +++ b/.github/workflows/dynamic-checks.yml @@ -60,8 +60,9 @@ jobs: TEST_RESULT_PATH: /tmp/test-results steps: - name: Checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ github.ref }} - name: Setup Go and development tools diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 07758f96650..661ba54a970 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -34,6 +34,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go diff --git a/.github/workflows/gotip-testing.yml b/.github/workflows/gotip-testing.yml index 42091289d01..7ec7bc68ae8 100644 --- a/.github/workflows/gotip-testing.yml +++ b/.github/workflows/gotip-testing.yml @@ -8,6 +8,9 @@ on: env: TEST_RESULTS: /tmp/tip-results # path to where test results will be saved +permissions: + contents: read + jobs: test-tip: runs-on: ubuntu-latest @@ -25,6 +28,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ github.ref }} repository: DataDog/dd-trace-go diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index 0ccddc955ae..8af87e28fdb 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -29,6 +29,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go diff --git a/.github/workflows/lambda-integration-tests.yml b/.github/workflows/lambda-integration-tests.yml index dba0bcc6a80..8ba975b4570 100644 --- a/.github/workflows/lambda-integration-tests.yml +++ b/.github/workflows/lambda-integration-tests.yml @@ -16,6 +16,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Configure AWS Credentials via OIDC (Build-Stable) uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # v6.0.0 diff --git a/.github/workflows/main-branch-tests.yml b/.github/workflows/main-branch-tests.yml index 4edeb466365..a0e3bd26bf9 100644 --- a/.github/workflows/main-branch-tests.yml +++ b/.github/workflows/main-branch-tests.yml @@ -34,6 +34,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Cache uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 with: diff --git a/.github/workflows/multios-unit-tests.yml b/.github/workflows/multios-unit-tests.yml index 778b3c3efc4..d4784eca2c2 100644 --- a/.github/workflows/multios-unit-tests.yml +++ b/.github/workflows/multios-unit-tests.yml @@ -53,6 +53,7 @@ jobs: if: always() uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ github.sha }} clean: false - name: Setup Go and development tools diff --git a/.github/workflows/orchestrion.yml b/.github/workflows/orchestrion.yml index 032250766ea..a8183552f55 100644 --- a/.github/workflows/orchestrion.yml +++ b/.github/workflows/orchestrion.yml @@ -45,6 +45,8 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Setup Go and development tools uses: ./.github/actions/setup-go with: @@ -67,6 +69,7 @@ jobs: - name: Checkout Code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false repository: ${{ inputs.orchestrion-version != '' && 'DataDog/dd-trace-go' || github.repository }} ref: ${{ inputs.orchestrion-version != '' && 'main' || github.sha }} - name: Setup Go @@ -90,6 +93,7 @@ jobs: - name: Checkout Code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false repository: ${{ inputs.orchestrion-version != '' && 'DataDog/dd-trace-go' || github.repository }} ref: ${{ inputs.orchestrion-version != '' && 'main' || github.sha }} - name: Define Services JSON @@ -132,6 +136,7 @@ jobs: - name: Checkout Code uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false path: ${{ github.workspace }}/dd-trace-go repository: ${{ inputs.orchestrion-version != '' && 'DataDog/dd-trace-go' || github.repository }} ref: ${{ inputs.orchestrion-version != '' && 'main' || github.sha }} @@ -141,6 +146,7 @@ jobs: id: checkout-orchestrion uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false path: ${{ github.workspace }}/orchestrion repository: DataDog/orchestrion ref: ${{ inputs.orchestrion-version }} @@ -302,6 +308,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 if: always() with: + persist-credentials: false ref: ${{ inputs.orchestrion-version != '' && 'main' || github.sha }} clean: false - name: Upload the results to Datadog CI App diff --git a/.github/workflows/outdated-integrations.yml b/.github/workflows/outdated-integrations.yml index d7c91212480..e3b8196581f 100644 --- a/.github/workflows/outdated-integrations.yml +++ b/.github/workflows/outdated-integrations.yml @@ -27,7 +27,9 @@ jobs: policy: self.outdated-integrations scope: DataDog/dd-trace-go - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - + with: + persist-credentials: false + - run: go clean -modcache - name: Add dependencies diff --git a/.github/workflows/parametric-tests.yml b/.github/workflows/parametric-tests.yml index cc467f0dfd8..5c76b783fff 100644 --- a/.github/workflows/parametric-tests.yml +++ b/.github/workflows/parametric-tests.yml @@ -42,12 +42,14 @@ jobs: - name: Checkout system tests uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false repository: 'DataDog/system-tests' ref: ${{ inputs.ref }} - name: Checkout dd-trace-go uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.branch_ref || github.ref }} path: 'binaries/dd-trace-go' diff --git a/.github/workflows/pull-request-title-validation.yml b/.github/workflows/pull-request-title-validation.yml index f78166d16b0..b182fa53d15 100644 --- a/.github/workflows/pull-request-title-validation.yml +++ b/.github/workflows/pull-request-title-validation.yml @@ -9,6 +9,8 @@ on: - reopened - synchronize +permissions: {} + jobs: check-title: runs-on: ubuntu-latest diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f165968077b..2186d7a7bef 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -7,6 +7,9 @@ concurrency: group: ${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: warm-repo-cache: runs-on: ubuntu-latest @@ -14,6 +17,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ github.event.pull_request.head.sha }} - name: Cache uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index e4585d3bbbd..ba53d181b90 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -42,6 +42,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} repository: DataDog/dd-trace-go @@ -92,6 +93,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} # Manually specify the repository, which is necessary in the workflow_call situation, as the default is # otherwise the repository where the caller workflow started from. In this case, we need to check out the @@ -132,6 +134,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} repository: DataDog/dd-trace-go - name: Setup Go and development tools @@ -178,6 +181,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go @@ -269,6 +273,7 @@ jobs: steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} # Manually specify the repository, which is necessary in the workflow_call situation, as the default is # otherwise the repository where the caller workflow started from. In this case, we need to check out the diff --git a/.github/workflows/static-checks.yml b/.github/workflows/static-checks.yml index 3df4fc630e5..831b81b80ba 100644 --- a/.github/workflows/static-checks.yml +++ b/.github/workflows/static-checks.yml @@ -44,6 +44,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go @@ -65,6 +66,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go @@ -83,6 +85,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go @@ -103,6 +106,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go @@ -123,6 +127,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go @@ -144,6 +149,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: golangci-lint @@ -183,6 +189,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Setup Go and development tools uses: ./.github/actions/setup-go diff --git a/.github/workflows/sync-cue-actions.yml b/.github/workflows/sync-cue-actions.yml index 3362af63a4f..34d944cae47 100644 --- a/.github/workflows/sync-cue-actions.yml +++ b/.github/workflows/sync-cue-actions.yml @@ -15,7 +15,9 @@ jobs: runs-on: ubuntu-latest if: github.actor == 'dependabot[bot]' steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Sync action SHAs to CUE template run: | @@ -37,6 +39,7 @@ jobs: run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" + git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" git add .github/workflows/test-apps.cue if git diff --cached --quiet; then echo "No CUE changes needed" diff --git a/.github/workflows/system-tests.yml b/.github/workflows/system-tests.yml index 2b1bd3d5270..6daf60dab34 100644 --- a/.github/workflows/system-tests.yml +++ b/.github/workflows/system-tests.yml @@ -41,6 +41,7 @@ jobs: - name: Checkout system-tests uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false repository: 'DataDog/system-tests' ref: ${{ inputs.ref }} - name: Pin exact commit SHA for system-tests @@ -164,6 +165,7 @@ jobs: - name: Checkout dd-trace-go uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.branch_ref || github.ref }} path: 'binaries/dd-trace-go' @@ -270,6 +272,7 @@ jobs: - name: Checkout system tests uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false repository: 'DataDog/system-tests' ref: ${{ inputs.ref }} @@ -279,6 +282,7 @@ jobs: - name: Checkout dd-trace-go uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ inputs.branch_ref || github.ref }} path: 'binaries/dd-trace-go' diff --git a/.github/workflows/test-apps-schedule.yml b/.github/workflows/test-apps-schedule.yml index fba9c472ee2..4a587137992 100644 --- a/.github/workflows/test-apps-schedule.yml +++ b/.github/workflows/test-apps-schedule.yml @@ -6,6 +6,9 @@ on: - cron: "0 0 * * *" # nightly - cron: "0 0 * * 2" # weekly (tuesdays) +permissions: + contents: read + jobs: nightly: if: github.event.schedule == '0 0 * * *' diff --git a/.github/workflows/test-apps.cue b/.github/workflows/test-apps.cue index 270932ea5f5..faa7993f10b 100644 --- a/.github/workflows/test-apps.cue +++ b/.github/workflows/test-apps.cue @@ -134,7 +134,10 @@ jobs: { { name: "Checkout Code", uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd", - with: {ref: "${{ inputs.ref || github.ref }}"}, + with: { + "persist-credentials": false, + ref: "${{ inputs.ref || github.ref }}", + }, }, { name: "Start Agent", diff --git a/.github/workflows/test-apps.yml b/.github/workflows/test-apps.yml index 296ef4e4301..4e9415939a6 100644 --- a/.github/workflows/test-apps.yml +++ b/.github/workflows/test-apps.yml @@ -7,10 +7,6 @@ name: Test Apps type: string default: '["unit-of-work/v1","unit-of-work/v2","memory-leak/goroutine","memory-leak/heap","memory-leak/goroutine-heap"]' description: Scenarios to run - ref: - description: The branch to run the workflow on - required: false - type: string 'env: prod': type: boolean default: true @@ -33,6 +29,10 @@ name: Test Apps type: string default: trigger:manual description: Extra DD_TAGS + ref: + description: The branch to run the workflow on + required: false + type: string workflow_dispatch: inputs: scenarios: @@ -73,16 +73,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''unit-of-work/v1'') && inputs[''env: prod'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_APP_API_KEY'] }} datadog_site: datadoghq.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -99,16 +100,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''unit-of-work/v1'') && inputs[''env: staging'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_AND_DEMO_API_KEY'] }} datadog_site: datad0g.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -125,16 +127,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''unit-of-work/v2'') && inputs[''env: prod'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_APP_API_KEY'] }} datadog_site: datadoghq.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -151,16 +154,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''unit-of-work/v2'') && inputs[''env: staging'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_AND_DEMO_API_KEY'] }} datadog_site: datad0g.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -177,16 +181,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''memory-leak/goroutine'') && inputs[''env: prod'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_APP_API_KEY'] }} datadog_site: datadoghq.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -203,16 +208,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''memory-leak/goroutine'') && inputs[''env: staging'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_AND_DEMO_API_KEY'] }} datadog_site: datad0g.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -229,16 +235,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''memory-leak/heap'') && inputs[''env: prod'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_APP_API_KEY'] }} datadog_site: datadoghq.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -255,16 +262,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''memory-leak/heap'') && inputs[''env: staging'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_AND_DEMO_API_KEY'] }} datadog_site: datad0g.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -281,16 +289,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''memory-leak/goroutine-heap'') && inputs[''env: prod'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_APP_API_KEY'] }} datadog_site: datadoghq.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true @@ -307,16 +316,17 @@ jobs: if: 'contains(fromJSON(inputs[''scenarios'']), ''memory-leak/goroutine-heap'') && inputs[''env: staging'']' steps: - name: Checkout Code - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: + persist-credentials: false ref: ${{ inputs.ref || github.ref }} - name: Start Agent - uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a # v1.3.1 + uses: datadog/agent-github-action@8240b406d73cb84cd5085a3919a78f59c258da3a with: api_key: ${{ secrets['DD_TEST_AND_DEMO_API_KEY'] }} datadog_site: datad0g.com - name: Setup Go - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 with: go-version: stable check-latest: true diff --git a/.github/workflows/unit-integration-tests.yml b/.github/workflows/unit-integration-tests.yml index a03a21e3d68..2a3196b78d6 100644 --- a/.github/workflows/unit-integration-tests.yml +++ b/.github/workflows/unit-integration-tests.yml @@ -40,6 +40,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ github.sha }} clean: false - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 @@ -223,6 +224,7 @@ jobs: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: + persist-credentials: false ref: ${{ github.sha }} clean: false @@ -397,6 +399,7 @@ jobs: uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 if: always() with: + persist-credentials: false ref: ${{ github.sha }} clean: false - name: Setup Go and development tools diff --git a/.github/workflows/update-supported-versions-doc.yml b/.github/workflows/update-supported-versions-doc.yml index 331d0c9f1cd..2a4821b2480 100644 --- a/.github/workflows/update-supported-versions-doc.yml +++ b/.github/workflows/update-supported-versions-doc.yml @@ -23,6 +23,8 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - run: echo 'Smoke Tests workflow passed' - run: go run ./scripts/gen_integrations_doc.go - run: git diff