Default workflow templates and reusable workflows for VirtoCommerce platform/modules.
The main branch is protected by the ruleset main: require approval from github-workflows-reviewers. Every PR needs one approval from the reviewers team before it can be merged. Direct pushes, force pushes and deleting main are blocked. Repository admins and organization owners can bypass all of these rules.
@VirtoCommerce/github-workflows-reviewers: approvals from this team are the ones that count. Add the people who should review and approve changes to this repository. GitHub does not let an author approve their own PR, so the team needs at least two active members.@VirtoCommerce/github-workflows-maintainers: members can merge a PR without approval ("Merge without waiting for requirements"). This applies only to merging PRs: they still cannot push tomaindirectly or force push. Add someone only while they are the only person maintaining the repository and nobody else can approve their PRs. Remove them once a second reviewer is available.
Actual workflow templates are located in workflow-templates folder.
Module workflow templates include:
- module-ci.yml - VirtoCommerce Module CI workflow template.
- module-release-hotfix.yml - VirtoCommerce Module release hotfix workflow template.
- release.yml - VirtoCommerce Release workflow template.
- publish-nugets.yml VirtoCommerce nugets publish workflow template.
Platform workflow templates moved to the vc-platform repository:
- platform-ci.yml - VirtoCommerce Platform CI workflow template.
- platform-release-hotfix.yml - VirtoCommerce Platform release hotfix workflow template.
- release.yml - VirtoCommerce Release workflow template.
- publish-nugets.yml - VirtoCommerce nugets publish workflow template.
Note release.yml and publish-nugets.yml used for both VirtoCommerce modules and platform.
To update workflow templates:
- Update template in
workflow-templatesfolder. - Increment version in a template.
- Add a version tag for releases of your workflows.
- Bump default version for module workflows in deploy-module-workflows.yml
git tag -a -m "My template release" v3.800.0
git push --follow-tags
- Run
Deploy Module workflowsto update workflows in modules orDeploy Platform workflowsto update workflows in platform.
- Specify version tag in
Version to deployinput parameter.
You can also use main as version tag to use latest version from the main branch for update.
- Update composable workflow versions in repositories:
- vc-modules
- vc-platform
- vc-frontend
- Add new workflow template to
workflow-templatesfolder as described in the article. - Add new workflow file name to
TEMPLATES_LISTenvironment variable indeploy-module-workflows.yml,deploy-platform-workflows.ymlor both workflows for deploy new workflow to the repositories.
vulnerability-exceptions.json is the one list of vulnerabilities the image scans of all repositories skip. docker-image-vulnerability-process.yml (vc-platform, vc-modules, the scheduled image scan) reads it from main, so a merged entry applies at once, without a release; a caller's own vulnerabilitySkipList still adds to it.
"CVE-2026-32933": {
"reason": "why the finding does not apply or is accepted",
"expires": "2027-01-19",
"aliases": ["GHSA-rvv3-g6hj-g44x"],
"ticket": "VCST-4911",
"repositories": ["VirtoCommerce/vc-modules"],
"images": ["*virtostart/platform*"]
}reasonandexpires(yyyy-MM-dd, the last day it applies) are required; an entry without them is not applied, and afterexpiresthe finding is reported again.repositories(optional): masks of the repository that runs the scan. The scheduled image scan runs inVirtoCommerce/.github, so that mask covers all of its images.images(optional): masks of the scanned image, with or without its tag.ticket(optional): the Jira key that tracks the exception.- The entry applies where a
repositoriesor animagesmask matches; with neither, everywhere. One entry per advisory lists all its places. - The key is the ID Trivy reports;
aliases(optional) lists the other IDs of the same advisory (GHSA-…of aCVE-…), skipped along with it.
Every third-party uses: reference in this repo (anything not under VirtoCommerce/*) is pinned to a full 40-character commit SHA with a trailing # tag comment, per the GitHub Actions hardening guide. Tags are mutable; SHAs are not.
# Correct
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# Rejected by CI
uses: actions/checkout@v6This applies to both reusable workflows in .github/workflows/ and starter workflows in workflow-templates/ (the latter inherit pinned SHAs when copied into module repos).
How updates happen
- Dependabot (
.github/dependabot.yml) scans.github/workflows/,workflow-templates/and everyactions/*/action.y(a)mlweekly and opens grouped PRs bumping SHA + trailing comment when upstream cuts a new tag. - Security autofixes (
.github/workflows/auto-update-templates.yml) runs Mondays 08:00 UTC, applieszizmor --fix=allto workflows, templates and actions, and opens a PR with the fixes for review. Pin bumps are left to Dependabot. - Pin-check CI (
.github/workflows/pin-check.yml) runspinact run -checkon every PR that touches workflows or templates. PRs with unpinned third-partyuses:lines fail. - Scope is configured in
.pinact.yaml—VirtoCommerce/*is intentionally ignored (internal, not third-party). deprecated/is out of scope for all of the above: retired workflows there get no pin bumps, autofixes or pin checks. See deprecated/README.md.
For contributors
-
When adding a new third-party action, write the SHA, not the tag. Quick lookup:
gh api repos/OWNER/REPO/commits/TAG --jq '.sha' -
VirtoCommerce/vc-github-actions/<dir>@masterandVirtoCommerce/.github/.../*[email protected]refs remain version-/branch-pinned as before. -
New module repos created via
create-module-repository.ymlinherit pinned templates but do not get their own Dependabot config — SHAs there will go stale unless the module repo adds one.


