Skip to content

chore(deps): Pin lints bound and release-comment action SHA#415

Open
buenaflor wants to merge 2 commits into
mainfrom
buenaflor/chore/dependency-pinning-audit
Open

chore(deps): Pin lints bound and release-comment action SHA#415
buenaflor wants to merge 2 commits into
mainfrom
buenaflor/chore/dependency-pinning-audit

Conversation

@buenaflor

@buenaflor buenaflor commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Bounds the floating lints dev dependency at ^6.1.0 and pins the last mutable GitHub Action reference (getsentry/release-comment-issues-gh-action@v1) to its full commit SHA.

These were the only two actionable gaps found while auditing this repo for dependency pinning. Everything else already holds up: all other Actions were SHA-pinned, no dependency comes from a Git ref, and Dependabot covers both the pub and github-actions ecosystems.

pubspec.lock stays uncommitted on purpose. This is a published library package, and Dart's guidance is that regular packages should not check in a lockfile so they keep resolving against the range they advertise to consumers.

An earlier revision of this PR also added a Dependency Audit workflow. It was dropped because the org-level Dependency Review workflow and Socket Security already scan dependencies on every PR, and Dependabot already surfaces available updates.

Fixes #410
Refs SDK-1316

Pin mutable dependency inputs and add CI checks that report Pub dependency
health, review vulnerable updates, and enforce immutable Action references.

Fixes #410
Refs SDK-1316

Co-authored-by: Cursor <cursoragent@cursor.com>
@buenaflor
buenaflor requested a review from denrase as a code owner July 24, 2026 17:41
Copilot AI review requested due to automatic review settings July 24, 2026 17:41
@linear-code

linear-code Bot commented Jul 24, 2026

Copy link
Copy Markdown

SDK-1316

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR strengthens dependency and CI supply-chain hygiene for the sentry_dart_plugin repository by tightening Dart dev tooling bounds and adding CI checks that surface dependency state and enforce GitHub Action SHA pinning.

Changes:

  • Bound the lints dev dependency to a caret range (^6.1.0) instead of an open-ended lower bound.
  • Pinned getsentry/release-comment-issues-gh-action to a full commit SHA.
  • Added a new “Dependency Audit” workflow to report Dart dependency state, run GitHub’s Dependency Review on PRs, and enforce full-SHA Action pins.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
pubspec.yaml Bounds the lints dev dependency to a stable semver range.
.github/workflows/release-comment-issues.yml Pins the external Action to a full commit SHA for supply-chain safety.
.github/workflows/dependency-audit.yml Adds CI jobs for pub dependency reporting, dependency review on PRs, and Action SHA pin enforcement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sentry already runs an org-level Dependency Review workflow and Socket
Security on every pull request, and Dependabot opens dependency update
PRs, so the added jobs duplicated existing coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@buenaflor buenaflor changed the title ci: Add dependency audit safeguards chore(deps): Pin lints bound and release-comment action SHA Jul 24, 2026
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.

Acknowledge dependency pinning audit for sentry-dart-plugin

2 participants