Skip to content

Maintaining your repository

Anna Sancho Vaquer edited this page Oct 21, 2026 · 3 revisions

Updating the CI workflows

Your workflows call reusable workflows from canonical/rocks-actions, pinned to a commit SHA with the release written in a comment:

jobs:
  rock:
    uses: canonical/rocks-actions/.github/workflows/Rock.yaml@37b3cb639e19b045baf571b8273f6a2f54a645c1 # v1.4.1

The same pin is used in .github/workflows/threats.yml.

Pinning to a full SHA guarantees that the code your CI runs only changes when you decide it should.

Update process

  1. Pick a release from the rocks-actions tags.
  2. Replace the SHA and the comment in both workflow files (rock.yml and threats.yml) with the new release's commit SHA and tag.
  3. Read the release notes for changes to .github/ci.yaml.
  4. Open a pull request. The pipeline validates your configuration against the new version, building and testing everything without publishing (uploads only happen on main).

Tip

Tools such as Renovate and Dependabot can open these update PRs for you and understand the # vX.Y.Z comment convention.

Note

This documentation describes rocks-actions v1.4.X. Behavior of newer versions may differ. In particular, check the notes about bearer authentication, lfs and cve-scan in the CI configuration reference after updating.

Picking up template changes

The template's workflow files are small, and the logic lives in rocks-actions, so most improvements reach you by updating the pin. For other template changes (new files or changes in ci.yaml structure), compare your repository with the template and port the differences.

Housekeeping checklist

  • CODEOWNERS: keep it up to date so the right people review changes.
  • REPO_CLONER_TOKEN: renew before it expires (private/internal repositories only). See Secrets and Permissions for more information on this token.
  • Registry credentials: rotate regularly and update the matching secrets.
  • Vulnerability issues: triage the issues opened by the Threat monitor, and prune stale entries from .trivyignore.

Clone this wiki locally