Skip to content

use dd-octo-sts for tag creation#7732

Draft
bengl wants to merge 1 commit intomasterfrom
bengl/dd-octo-sts
Draft

use dd-octo-sts for tag creation#7732
bengl wants to merge 1 commit intomasterfrom
bengl/dd-octo-sts

Conversation

@bengl
Copy link
Collaborator

@bengl bengl commented Mar 10, 2026

No description provided.

@bengl bengl requested a review from a team as a code owner March 10, 2026 18:48
@github-actions
Copy link
Contributor

github-actions bot commented Mar 10, 2026

Overall package size

Self size: 4.95 MB
Deduped: 5.8 MB
No deduping: 5.8 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@pr-commenter
Copy link

pr-commenter bot commented Mar 10, 2026

Benchmarks

Benchmark execution time: 2026-03-10 18:57:37

Comparing candidate commit 964cfee in PR branch bengl/dd-octo-sts with baseline commit db73ae0 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 230 metrics, 30 unstable metrics.

@bengl bengl force-pushed the bengl/dd-octo-sts branch from 964cfee to 51c2627 Compare March 10, 2026 19:03
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.40%. Comparing base (db73ae0) to head (51c2627).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #7732       +/-   ##
===========================================
+ Coverage   69.93%   80.40%   +10.46%     
===========================================
  Files         711      741       +30     
  Lines       31177    32084      +907     
===========================================
+ Hits        21805    25797     +3992     
+ Misses       9372     6287     -3085     
Flag Coverage Δ
aiguard-macos 38.88% <ø> (?)
aiguard-ubuntu 38.99% <ø> (?)
aiguard-windows 38.72% <ø> (?)
apm-capabilities-tracing-macos 48.90% <ø> (?)
apm-capabilities-tracing-ubuntu 48.94% <ø> (+<0.01%) ⬆️
apm-capabilities-tracing-windows 48.67% <ø> (?)
apm-integrations-child-process 38.44% <ø> (?)
apm-integrations-couchbase-18 37.35% <ø> (-0.10%) ⬇️
apm-integrations-couchbase-eol 37.68% <ø> (-0.25%) ⬇️
apm-integrations-oracledb 37.66% <ø> (-0.10%) ⬇️
appsec-express 55.14% <ø> (?)
appsec-fastify 51.49% <ø> (?)
appsec-graphql 51.68% <ø> (?)
appsec-kafka 44.20% <ø> (?)
appsec-ldapjs 43.90% <ø> (?)
appsec-lodash 43.56% <ø> (?)
appsec-macos 58.17% <ø> (?)
appsec-mongodb-core 48.67% <ø> (?)
appsec-mongoose 49.34% <ø> (?)
appsec-mysql 50.73% <ø> (?)
appsec-node-serialize 43.08% <ø> (?)
appsec-passport 47.47% <ø> (?)
appsec-postgres 50.47% <ø> (?)
appsec-sourcing 42.48% <ø> (?)
appsec-template 43.24% <ø> (?)
appsec-ubuntu 58.25% <ø> (-0.05%) ⬇️
appsec-windows 58.01% <ø> (?)
instrumentations-instrumentation-bluebird 32.30% <ø> (?)
instrumentations-instrumentation-body-parser 40.38% <ø> (?)
instrumentations-instrumentation-child_process 37.75% <ø> (?)
instrumentations-instrumentation-cookie-parser 34.28% <ø> (?)
instrumentations-instrumentation-express 34.60% <ø> (?)
instrumentations-instrumentation-express-mongo-sanitize 34.41% <ø> (?)
instrumentations-instrumentation-express-session 40.01% <ø> (?)
instrumentations-instrumentation-fs 31.92% <ø> (?)
instrumentations-instrumentation-generic-pool 29.91% <ø> (?)
instrumentations-instrumentation-http 39.73% <ø> (?)
instrumentations-instrumentation-knex 32.30% <ø> (?)
instrumentations-instrumentation-mongoose 33.43% <ø> (?)
instrumentations-instrumentation-multer 40.13% <ø> (?)
instrumentations-instrumentation-mysql2 38.21% <ø> (?)
instrumentations-instrumentation-passport 43.88% <ø> (?)
instrumentations-instrumentation-passport-http 43.55% <ø> (?)
instrumentations-instrumentation-passport-local 44.09% <ø> (?)
instrumentations-instrumentation-pg 37.65% <ø> (?)
instrumentations-instrumentation-promise 32.23% <ø> (?)
instrumentations-instrumentation-promise-js 32.24% <ø> (?)
instrumentations-instrumentation-q 32.28% <ø> (?)
instrumentations-instrumentation-url 32.20% <ø> (?)
instrumentations-instrumentation-when 32.25% <ø> (?)
llmobs-ai 42.20% <ø> (?)
llmobs-anthropic 40.18% <ø> (?)
llmobs-bedrock 39.17% <ø> (?)
llmobs-google-genai 39.73% <ø> (-0.09%) ⬇️
llmobs-langchain 39.97% <ø> (-0.08%) ⬇️
llmobs-openai 43.91% <ø> (-0.10%) ⬇️
llmobs-vertex-ai 39.98% <ø> (?)
platform-core 31.53% <ø> (?)
platform-esbuild 34.48% <ø> (?)
platform-instrumentations-misc 48.40% <ø> (?)
platform-shimmer 37.63% <ø> (?)
platform-unit-guardrails 32.95% <ø> (?)
plugins-azure-event-hubs 25.83% <ø> (?)
plugins-azure-service-bus 25.19% <ø> (?)
plugins-bullmq 44.17% <ø> (-0.01%) ⬇️
plugins-cassandra 37.70% <ø> (-0.10%) ⬇️
plugins-cookie 26.89% <ø> (?)
plugins-cookie-parser 26.67% <ø> (?)
plugins-crypto 26.79% <ø> (?)
plugins-dd-trace-api 38.27% <ø> (?)
plugins-express-mongo-sanitize 26.82% <ø> (ø)
plugins-express-session 26.63% <ø> (?)
plugins-fastify 42.09% <ø> (-0.10%) ⬇️
plugins-fetch 38.26% <ø> (-0.10%) ⬇️
plugins-fs 38.54% <ø> (-0.11%) ⬇️
plugins-generic-pool 25.87% <ø> (ø)
plugins-google-cloud-pubsub 45.30% <ø> (?)
plugins-grpc 40.81% <ø> (-0.10%) ⬇️
plugins-handlebars 26.86% <ø> (ø)
plugins-hapi 40.01% <ø> (-0.10%) ⬇️
plugins-hono 40.27% <ø> (-0.10%) ⬇️
plugins-ioredis 38.35% <ø> (-0.10%) ⬇️
plugins-knex 26.50% <ø> (ø)
plugins-ldapjs 24.36% <ø> (ø)
plugins-light-my-request 26.23% <ø> (?)
plugins-limitd-client 32.58% <ø> (-0.10%) ⬇️
plugins-lodash 25.96% <ø> (ø)
plugins-mariadb 39.40% <ø> (-0.10%) ⬇️
plugins-memcached 38.07% <ø> (-0.10%) ⬇️
plugins-microgateway-core 39.06% <ø> (-0.10%) ⬇️
plugins-moleculer 40.41% <ø> (-0.10%) ⬇️
plugins-mongodb 39.09% <ø> (-0.10%) ⬇️
plugins-mongodb-core 38.92% <ø> (-0.10%) ⬇️
plugins-mongoose 38.78% <ø> (-0.10%) ⬇️
plugins-multer 26.63% <ø> (ø)
plugins-mysql 39.08% <ø> (-0.10%) ⬇️
plugins-mysql2 39.18% <ø> (-0.10%) ⬇️
plugins-node-serialize 26.93% <ø> (ø)
plugins-opensearch 37.53% <ø> (-0.10%) ⬇️
plugins-passport-http 26.68% <ø> (ø)
plugins-postgres 35.66% <ø> (-0.08%) ⬇️
plugins-process 26.79% <ø> (?)
plugins-pug 26.89% <ø> (ø)
plugins-redis 38.81% <ø> (-0.10%) ⬇️
plugins-router 42.81% <ø> (-0.10%) ⬇️
plugins-sequelize 25.47% <ø> (ø)
plugins-test-and-upstream-amqp10 38.43% <ø> (-0.10%) ⬇️
plugins-test-and-upstream-amqplib 43.76% <ø> (-0.11%) ⬇️
plugins-test-and-upstream-apollo 38.93% <ø> (-0.09%) ⬇️
plugins-test-and-upstream-avsc 38.60% <ø> (?)
plugins-test-and-upstream-bunyan 33.84% <ø> (?)
plugins-test-and-upstream-connect 40.66% <ø> (-0.10%) ⬇️
plugins-test-and-upstream-graphql 40.04% <ø> (-0.10%) ⬇️
plugins-test-and-upstream-koa 40.25% <ø> (?)
plugins-test-and-upstream-protobufjs 38.82% <ø> (?)
plugins-test-and-upstream-rhea 43.92% <ø> (-0.11%) ⬇️
plugins-undici 39.04% <ø> (-0.09%) ⬇️
plugins-url 26.79% <ø> (ø)
plugins-valkey 38.01% <ø> (?)
plugins-vm 26.79% <ø> (ø)
plugins-winston 34.03% <ø> (-0.09%) ⬇️
plugins-ws 41.76% <ø> (?)
profiling-macos 39.85% <ø> (?)
profiling-ubuntu 39.97% <ø> (?)
profiling-windows 41.16% <ø> (?)
serverless-azure-functions-client 25.54% <ø> (ø)
serverless-azure-functions-eventhubs 25.54% <ø> (ø)
serverless-azure-functions-servicebus 25.54% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tlhunter tlhunter marked this pull request as draft March 11, 2026 18:07
Copy link
Contributor

@xopham xopham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a few comments to improve this on the publish-v3 job that should if accepted be used for all others as well. Made a brief self-test workflow and run for reference :)

Thanks for fixing!

claim_pattern:
event_name: (push|workflow_dispatch)
ref: refs/heads/(v[345]\.x|master)
ref_protected: "true"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this has turned out to be an unreliable and misleading field, so let's drop it. The plugin is technically instructed to not add it, so i am taking note

@@ -0,0 +1,13 @@
issuer: https://token.actions.githubusercontent.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we name it self.github.release.push-tags.sts.yaml to comply with naming scheme?

id: octo-sts
with:
scope: DataDog/dd-trace-js
policy: release
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if adjusted above:

Suggested change
policy: release
policy: self.github.release.push-tags

with:
scope: DataDog/dd-trace-js
policy: release
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better than injecting below, you could do:

Suggested change
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ steps.octo-sts.outputs.token }}

- run: |
git tag v${{ fromJson(steps.pkg.outputs.json).version }}
git push origin v${{ fromJson(steps.pkg.outputs.json).version }}
git push https://x-access-token:${{ steps.octo-sts.outputs.token }}@github.com/${{ github.repository }}.git v${{ fromJson(steps.pkg.outputs.json).version }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if adjusting the previous comment, you can go back to:

Suggested change
git push https://x-access-token:${{ steps.octo-sts.outputs.token }}@github.com/${{ github.repository }}.git v${{ fromJson(steps.pkg.outputs.json).version }}
git push origin v${{ fromJson(steps.pkg.outputs.json).version }}

Comment on lines 24 to 25
contents: write
pull-requests: read
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why there ever was a pull-requests: read, but I assume this and the contents: write can be removed:

Suggested change

Unless the npm publish action needs it in which case only drop the contents: write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants