Skip to content

TT-021: Source-map docs point the upload Action at the moving @main ref; pin a tag or SHA ≥ v1.17.18 #721

Closed

Description

@unjica

Severity: P3 · Area: Source maps · Found by: QA

Summary

/docs/source-maps and docs/source-maps.md tell users to reference the source-map Action at the moving branch Telemetry-Tracker/telemetry-tracker/.github/actions/upload-source-maps@main. That job receives the project API key secret, and main has changed the Action 9 times since 2026-07-07, including:

  • a breaking input rename (session_cookie → api_key, be4b441, 2026-07-09);
  • an input-to-script injection fix (fce3f8d, 2026-07-19);
  • a full rewrite that changed bundle_url resolution (0e9158e, 2026-09-25).

Every consumer picks up each change on their next CI run, with no version signal. Pinned refs that work already exist: every tag from v1.17.18 to v1.17.24 contains the Action, byte-identical to main.

Severity reason: P3. Nothing is broken today. It's CI supply-chain and stability hygiene for a step that handles an API key (GitHub's hardening guide recommends pinning third-party actions to a full commit SHA). The mutable ref has already delivered one breaking change.

Affected

Environment and versions

Static check via the GitHub API, 2026-09-26 10:45–10:50 CEST. The Action wasn't run in GitHub.

Steps to reproduce

  1. Read /docs/source-maps: the only uses: line is @main.
  2. gh api "repos/Telemetry-Tracker/telemetry-tracker/commits?sha=main&path=.github/actions/upload-source-maps" --jq '.[]|.sha[0:7]+" "+.commit.committer.date' lists 9 commits (2026-07-07 … 2026-09-25).
  3. For each tag, compare the Action directory, e.g. gh api "repos/Telemetry-Tracker/telemetry-tracker/contents/.github/actions/upload-source-maps?ref=v1.17.24" --jq '.[]|.name+" "+.sha'.

Expected

The docs show a pinned ref (full commit SHA with a version comment, or at least a release tag) plus a note on how to update it (e.g. Dependabot github-actions).

Actual

What @main runs today (8d00f9d, identical on develop): a composite action whose single step runs node "$GITHUB_ACTION_PATH/upload.cjs".

  • It uses only Node built-ins (fs, path, http/https). There's no npm install, no npx, and no @latest CLI.
  • The Node version isn't pinned: it's whatever node is on the runner's PATH. The script uses plain CommonJS, so the risk is low.
  • It follows the last non-inline sourceMappingURL, falls back to <map>.map → <map>, and exits 1 on the first failed upload.
Ref Action files Same as main Notes
main, develop, v1.17.18 … v1.17.24 (7 tags) action.yml (blob 71e0b548) + upload.cjs (7b195612) yes inputs api_key, project_id, release, app, artifact_path, base_url, base_api_url
v1.16.6 … v1.17.17 (20 tags) action.yml only (be6728fc), inline script no same 7 inputs; no sourceMappingURL support
v1.6.2 … v1.16.5 (56 tags) action.yml (639076c1) no same 7 inputs, but ${{ inputs.* }} is interpolated straight into the inline script (fixed by fce3f8d)
v1.6.1 action.yml (532d8359) no no base_api_url input
older (42 tags) no Action – –

So @v1.17.24 (or its commit 8d00f9d1527783f6365e7c6e2e1f19630920bc6e) is a drop-in, compatible pin today. Tags are repo-wide release tags (several per day), so a SHA pin with a # v1.17.24 comment is the most stable option.

Root cause

Docs only (apps/dashboard /docs/source-maps page and docs/source-maps.md:204,235).

Release coordination

None (docs only). If the team prefers a stable major-style ref, consider a moving upload-source-maps-v1 tag, or a dedicated action repo with semver tags.

Acceptance criteria

  • /docs/source-maps and docs/source-maps.md show @<full SHA> # v1.17.x (or @v1.17.x) for a tag ≥ v1.17.18.
  • The docs say tags before v1.17.18 contain an older Action (no sourceMappingURL support; ≤ v1.16.5 also interpolate inputs into the script) and must not be used, and show how to keep the pin updated.
  • The pinned ref resolves and contains upload.cjs.

Fix references

None yet. Related: #704 (TT-005, source-map docs).

History

  • 2026-09-26 10:45–10:50 CEST: found (static check).

Filed from the QA regression list on 2026-09-26. Source: QA report 2026-09-26-sdk-qa.md (#tt-021).

Activity

  1. added
    bug
    documentation
    qa
    on Sep 26, 2026
  2. unjica commented on Oct 2, 2026

    @unjica
    CollaboratorAuthor

    QA verification — PASS (closed)

    When: 2026-10-02 ~08:54 CEST (weekday smoke)
    Fix: PR #723; live on production docs (API 1.17.25)
    Method: Fetched https://telemetry-tracker.com/docs/source-maps

    • uses: refs: Telemetry-Tracker/telemetry-tracker/.github/actions/upload-source-maps@8d00f9d1527783f6365e7c6e2e1f19630920bc6e (×2)
    • Zero @main refs remaining on the live page

    Closing as verified-fixed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentationqa

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions