Skip to content

ci: Pin GitHub Actions to commit SHAs and configure Dependabot - #686

Merged
Martin Hochel (Hotell) merged 2 commits into
mainfrom
copilot/chore-pin-github-actions
Oct 26, 2026
Merged

Martin Hochel (Hotell) merged 2 commits into
mainfrom
copilot/chore-pin-github-actions

Conversation

Copilot AI commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
  • Inspect workflows, local action manifests, existing Dependabot policies, and CI status; no local action manifests or reusable workflows found.
  • Resolve current upstream action refs using git ls-remote and GitHub commit API; retain the existing nrwl/nx-set-shas pin matching dereferenced v4.4.0.
  • Pin 13 mutable executable references across three workflows with original-ref comments; preserve existing pins and the already-valid weekly root Dependabot github-actions entry and npm policies unchanged.
  • Validate workflow YAML with PyYAML, confirm semantic equality except uses pins, pass Dependabot JSON Schema validation using SchemaStore's upstream GitHub schema, pass git diff --check, and scan changed files for secrets (none found).
  • Commit focused changes, run CodeQL, and document final check results and limitations: actionlint and repository Node dependencies are unavailable; SchemaStore hostname failed, but upstream GitHub schema validation passed; current PR CI requires approval (action_required, zero jobs/logs). Existing commented-out upload-artifact@v6 example is non-executable and intentionally unchanged; no executable exceptions or unresolved refs.
Original prompt

Title: chore(ci): pin GitHub Actions to commit SHAs and configure Dependabot

Implement SHA pinning of GitHub Actions and automated maintenance through Dependabot in this repository. Work entirely in Copilot cloud and open one focused pull request against the default branch. Do not merge it.

Follow repository contributor and Copilot instructions. Inspect existing workflows, local composite actions, and Dependabot configuration before editing.

Pin every external GitHub action and external reusable workflow reference in executable workflow/action YAML to a verified full 40-character commit SHA, with a readable version/ref comment (for example, # v4.2.2). Cover .github/workflows and local composite action manifests wherever they live; retain already-correct pins. Resolve the CURRENT referenced release/tag/ref to its actual commit in the upstream repository, dereferencing annotated tags. Do not guess hashes or upgrade action versions/major versions as part of this task. Keep distinct versions distinct where intentionally used. Leave local ./ action/workflow references unchanged; do not treat docker:// references as Git commit references. If any mutable reference cannot be resolved, explicitly report it rather than silently skipping it or inventing a replacement.

Create or minimally extend .github/dependabot.yml (or the existing .yaml equivalent) with version: 2 and a github-actions updates entry for directory / on a weekly schedule. Preserve existing ecosystem entries, grouping, schedules, labels, and other intentional policies; reuse a valid existing github-actions entry rather than duplicating it. Ensure configuration supports Dependabot maintaining SHA-pinned action references and readable version comments.

Preserve workflow behavior, triggers, permissions, inputs, runner choices, secrets, and deployment/release semantics. No unrelated dependency upgrades, automatic merging, or repository/organization settings changes.

Validate YAML and Dependabot configuration using available repository tooling, verify upstream commit identities, and scan the relevant executable YAML to confirm no external GitHub uses references remain unpinned, explicitly documenting any legitimate exceptions. Run the narrow applicable checks and include results and limitations in the PR description. Do not claim checks passed if unavailable or failing.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d59f2d05-2170-4b07-af4b-2e4c94f3608b
@Hotell
Martin Hochel (Hotell) marked this pull request as ready for review October 26, 2026 19:26
@Hotell
Martin Hochel (Hotell) requested a review from a team as a code owner October 26, 2026 19:26
@Hotell Martin Hochel (Hotell) changed the title [WIP] Pin GitHub Actions to commit SHAs and configure Dependabot ci: Pin GitHub Actions to commit SHAs and configure Dependabot Oct 26, 2026
@Hotell
Martin Hochel (Hotell) enabled auto-merge (squash) October 26, 2026 19:26
@Hotell
Martin Hochel (Hotell) enabled auto-merge (squash) October 26, 2026 23:13
@Hotell
Martin Hochel (Hotell) merged commit 4e9c39d into main Oct 26, 2026
9 checks passed
@Hotell
Martin Hochel (Hotell) deleted the copilot/chore-pin-github-actions branch October 26, 2026 23:14
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