Skip to content
VirtoCommercePublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

12 watching

Forks

Repository files navigation

Virto Commerce Workflows

Default workflow templates and reusable workflows for VirtoCommerce platform/modules.

Pull request approval

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 to main directly 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.

Workflow templates

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.

Update workflow templates

To update workflow templates:

  • Update template in workflow-templates folder.
  • 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 workflows to update workflows in modules or Deploy Platform workflows to update workflows in platform.

Deploy workflows

  • Specify version tag in Version to deploy input parameter.

Deploy workflows

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 templates

  • Add new workflow template to workflow-templates folder as described in the article.
  • Add new workflow file name to TEMPLATES_LIST environment variable in deploy-module-workflows.yml, deploy-platform-workflows.yml or both workflows for deploy new workflow to the repositories.

Templates-list

Vulnerability exceptions

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*"]
}
  • reason and expires (yyyy-MM-dd, the last day it applies) are required; an entry without them is not applied, and after expires the finding is reported again.
  • repositories (optional): masks of the repository that runs the scan. The scheduled image scan runs in VirtoCommerce/.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 repositories or an images mask 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 a CVE-…), skipped along with it.

Supply-chain security: pinned third-party actions

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@v6

This 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 every actions/*/action.y(a)ml weekly 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, applies zizmor --fix=all to 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) runs pinact run -check on every PR that touches workflows or templates. PRs with unpinned third-party uses: 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>@master and VirtoCommerce/.github/.../*[email protected] refs remain version-/branch-pinned as before.

  • New module repos created via create-module-repository.yml inherit pinned templates but do not get their own Dependabot config — SHAs there will go stale unless the module repo adds one.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

12 watching

Forks

Releases

Packages

Contributors

Languages