ci: add build, security scan, and npm release workflow - #2
Open
tachhire wants to merge 2 commits into
Open
Conversation
Adds .github/workflows/ci-anywhere.yml, which runs Boomi's standard build and
security gate on every push and pull request:
* builds the package (npm ci + npm run build)
* runs the test suite with coverage
* runs the secret scan, Sonar, and the dependency scan — any failure fails
the job
On a merge to main, and only once that gate is green, it also bumps the patch
version, builds the type declarations, publishes to npm, and pushes the release
commit and tag.
Also adds a coverage provider (@vitest/coverage-v8, pinned to the vitest already
in the lockfile) and an lcov reporter, so coverage reaches Sonar.
Requires these secrets: JFROG_TOKEN, SONAR_HOST_URL, SONAR_TOKEN, SNYK_TOKEN,
SNYK_ORG_ID, NPM_TOKEN.
1.4.0 adds credential redaction to the build tool's log output, which matters here because this repository's workflow logs are public. Nothing between the previous pin and 1.4.0 touches the build or scan path for this project type. The npm publish sequence is left in place but commented out: it needs an NPM_TOKEN secret and write permission for the release commit, both of which are being handled separately. Permissions drop back to contents: read until then.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the standard Boomi build and security gate to this repo.
On every push and pull request: builds the package, runs the test suite with
coverage, and runs the secret, code-quality, and dependency scans. Any scan
failure fails the job.
On a merge to main, once that gate is green: bumps the patch version, builds
the type declarations, publishes to npm, and pushes the release commit and tag.
Also adds a coverage provider and lcov reporter so coverage reaches the
code-quality dashboard.
Requires the JFROG, SONAR, SNYK, and NPM secrets listed at the top of the
workflow file.