I’d like to request support for a built-in utility or plugin in Harness CI that replicates the behavior of the
nrwl/nx-set-shas
GitHub Action. The purpose of this utility is to accurately determine the
NX_BASE
and
NX_HEAD
SHAs required to run
nx affected
commands during CI pipelines.
This is a common need in monorepo setups using Nx, and the existing GitHub Action cannot be used as-is in Harness due to its dependency on
github.context
. While we can work around this with shell scripts and GitHub API calls, having an official plugin or step in Harness would:
Eliminate boilerplate scripting
Avoid external GitHub Action dependencies
Improve reliability and native developer experience for Nx monorepos
Simplify onboarding for teams migrating from GitHub Actions
Desired Behavior:
When running on a feature branch, compute NX_BASE from the last successful pipeline run on
When running on main, compute NX_BASE from the previous successful main run
Expose NX_BASE and NX_HEAD as output variables