@secureci/cli 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -3
- package/dist/cli.js +1 -0
- package/dist/init.js +3 -2
- package/dist/report.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Test and vet your GitHub Actions **before you push**.
|
|
|
7
7
|
`@secureci/cli` (the `secureci` command) runs your workflows locally, validates
|
|
8
8
|
them, and checks them against your organization's pipeline standards — without
|
|
9
9
|
committing, pushing, or waiting on a CI runner. It is the free, open-source part
|
|
10
|
-
of [SecureCI](https://
|
|
10
|
+
of [SecureCI](https://secure-ci.dev).
|
|
11
11
|
|
|
12
12
|
> 📖 This README is the quick tour. Every flag, context and edge case lives in
|
|
13
13
|
> the **[full reference → DOCS.md](DOCS.md)**.
|
|
@@ -38,8 +38,8 @@ npm install -g @secureci/cli
|
|
|
38
38
|
npx @secureci/cli --help
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
Node.js 20+ is required.
|
|
42
|
-
|
|
41
|
+
Node.js 20+ is required. To build from source instead:
|
|
42
|
+
`npm install && npm run build`.
|
|
43
43
|
|
|
44
44
|
## First run
|
|
45
45
|
|
|
@@ -74,6 +74,11 @@ secureci inventory --check # fail on drift (use in CI)
|
|
|
74
74
|
check.
|
|
75
75
|
- **Machine-readable output** — `--format json|sarif` drops straight into CI and
|
|
76
76
|
GitHub code scanning.
|
|
77
|
+
- **Audit evidence** — the contract, `secureci.lock` and reports are plain files
|
|
78
|
+
you can commit and keep. See
|
|
79
|
+
[using output as audit evidence](DOCS.md#using-output-as-audit-evidence) and
|
|
80
|
+
the [compliance mapping](https://secure-ci.dev/compliance) (PCI DSS, DORA,
|
|
81
|
+
NIS2, ISO 27001, SOC 2 and more).
|
|
77
82
|
|
|
78
83
|
See the [reference](DOCS.md) for the complete command list and flags.
|
|
79
84
|
|
package/dist/cli.js
CHANGED
package/dist/init.js
CHANGED
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.renderInitWorkflow = renderInitWorkflow;
|
|
4
4
|
/**
|
|
5
5
|
* Render a ready-to-commit `.github/workflows/secureci.yml` that runs SecureCI
|
|
6
|
-
* on every pull request via the published `secure-ci/cli` action
|
|
6
|
+
* on every pull request via the published `secure-ci/cli` action, pinned to
|
|
7
|
+
* the release tag matching this CLI's version.
|
|
7
8
|
*
|
|
8
9
|
* The output is deterministic for a given set of options, so it can be
|
|
9
10
|
* regenerated and diffed. With uploads on (the default) the workflow asks for
|
|
@@ -26,7 +27,7 @@ function renderInitWorkflow(options) {
|
|
|
26
27
|
];
|
|
27
28
|
if (upload)
|
|
28
29
|
lines.push(' security-events: write');
|
|
29
|
-
lines.push('', 'jobs:', ' secureci:', ' runs-on: ubuntu-latest', ' steps:', ' - uses: actions/checkout@v4',
|
|
30
|
+
lines.push('', 'jobs:', ' secureci:', ' runs-on: ubuntu-latest', ' steps:', ' - uses: actions/checkout@v4', ` - uses: secure-ci/cli@v${options.version}`);
|
|
30
31
|
const withLines = [];
|
|
31
32
|
if (contract)
|
|
32
33
|
withLines.push(` contract: ${yamlScalar(contract)}`);
|
package/dist/report.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secureci/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "SecureCI: validate, check against pipeline standards, and run GitHub Actions workflows locally",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
"license": "MIT",
|
|
45
|
-
"homepage": "https://
|
|
45
|
+
"homepage": "https://secure-ci.dev",
|
|
46
46
|
"repository": {
|
|
47
47
|
"type": "git",
|
|
48
48
|
"url": "git+https://github.com/secure-ci/cli.git"
|