Skip to content

Pin GitHub Actions to commit SHAs and enable Dependabot #384

Description

@tylervick

SonarCloud flags every third-party action in this repo as a high-severity supply-chain risk (rule githubactions:S7637): mutable tags like maxim-lobanov/[email protected] and codecov/codecov-action@v4 can be repointed by the owner, or by an attacker who compromises the action repo, and our workflows would silently run different code.

Do these together, not separately. Pinning SHAs without automated bumps just trades a mutable tag for a frozen action that silently rots — the exact failure mode this project is trying to get away from.

Task:

  1. Add .github/dependabot.yml covering both github-actions and swift package ecosystems.
  2. Pin every third-party action to a full commit SHA with a trailing # vX.Y.Z comment.

Currently unpinned: maxim-lobanov/setup-xcode, codecov/codecov-action, dawidd6/action-homebrew-bump-formula, dawidd6/action-download-artifact, softprops/action-gh-release, peter-evans/create-pull-request, reecetech/version-increment, Apple-Actions/import-codesign-certs, devbotsxyz/xcode-select.

Activity

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

    TechdependenciesPull requests that update a dependency filegithub_actionsPull requests that update GitHub Actions code

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions