Skip to content

Conversation

@typotter
Copy link
Collaborator

Motivation

publishing to the alpha channel on main for snapshot releases to help improve stability of preview and other release channels

@typotter typotter requested a review from a team as a code owner October 16, 2025 19:17
@datadog-datadog-prod-us1
Copy link

✅ Code Quality    ⚠️ Code Vulnerabilities    ✅ Library Vulnerabilities

⚠️ Warnings

🛡️ 1 Code vulnerability detected

High: github-actions/unpinned-actions Workflow depends on unpinned GitHub Actions View rule
.github/workflows/alpha-release.yaml:149

ℹ️ Info

🛠️ No new code quality issues
📚 No new vulnerable libraries detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e3ab5a4 | Docs | Was this helpful? Give us feedback!

NODE_AUTH_TOKEN: ${{ secrets.ENV_NPM_TOKEN }}

- name: Create GitHub Release
uses: actions/github-script@v7
Copy link

@datadog-datadog-prod-us1 datadog-datadog-prod-us1 bot Oct 16, 2025

Choose a reason for hiding this comment

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

🔴 High: Code Vulnerability

Workflow depends on a GitHub actions pinned by tag instead of a hash. (...read more)

Pin GitHub Actions by commit hash to ensure supply chain security.

Using a branch (@main) or tag (@v1) allows for implicit updates, which can introduce unexpected or malicious changes. Instead, always pin actions to a full length commit SHA. You can find the commit SHA for the latest tag from the action’s repository and ensure frequent updates via auto-updaters such as dependabot. Include a comment with the corresponding full-length SemVer tag for clarity:

      - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

By default, the rule allows the following actions without pinning: "actions/checkout", "datadog/datadog-sca-github-action", "datadog/datadog-static-analyzer-github-action"

Arguments

Use the rule argument allow to allow a list of actions without pinning. The list is comma-separated.

rulesets:
  - github-actions:
    rules:
      unpinned-actions:
        arguments:
          allow: actions/checkout,datadog/datadog-static-analyzer-github-action

✨ Generate fix

View in Datadog  Leave us feedback  Documentation

echo "//registry.npmjs.org/:_authToken=${{ secrets.ENV_NPM_TOKEN }}" > ~/.npmrc
npm config set access public
cd packages/browser
npm publish --tag alpha
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

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.

3 participants