@secureci/cli 0.10.0 → 1.0.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
CHANGED
|
@@ -67,10 +67,10 @@ less install.sh
|
|
|
67
67
|
sh install.sh
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
Set `SECURECI_VERSION=0.
|
|
70
|
+
Set `SECURECI_VERSION=1.0.0` to install a specific release,
|
|
71
71
|
`SECURECI_INSTALL_DIR` to install somewhere else, and
|
|
72
72
|
`SECURECI_REQUIRE_ATTESTATION=1` to fail unless `gh` verifies build provenance
|
|
73
|
-
(e.g. `curl -fsSL https://secure-ci.dev/install.sh | SECURECI_VERSION=0.
|
|
73
|
+
(e.g. `curl -fsSL https://secure-ci.dev/install.sh | SECURECI_VERSION=1.0.0 sh`).
|
|
74
74
|
`secure-ci.dev/install.sh` redirects to [`install.sh`](install.sh) on this
|
|
75
75
|
repository's `main` branch.
|
|
76
76
|
|
|
@@ -391,7 +391,7 @@ async function uploadArtifact(fsys, inputs, runId) {
|
|
|
391
391
|
copyFile(file.host, path.join(target, ...rel.split('/')));
|
|
392
392
|
digest.update(rel).update(fs.readFileSync(file.host));
|
|
393
393
|
}
|
|
394
|
-
const id = String(parseInt(crypto.createHash('
|
|
394
|
+
const id = String(parseInt(crypto.createHash('sha256').update(target).digest('hex').slice(0, 8), 16));
|
|
395
395
|
return ok(`Uploaded ${files.length} file(s) as artifact "${name}" to ${target}`, {
|
|
396
396
|
'artifact-id': id,
|
|
397
397
|
'artifact-url': '',
|
|
@@ -90,7 +90,7 @@ async function executeDockerAction(action, actionPath, step, actionInputs, calle
|
|
|
90
90
|
duration: Date.now() - startTime
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
const tag = `secureci-action-${crypto.createHash('
|
|
93
|
+
const tag = `secureci-action-${crypto.createHash('sha256').update(actionDir).digest('hex').slice(0, 12)}`;
|
|
94
94
|
logger_1.logger.info(`Building Docker action image: ${action.name} (${tag})`);
|
|
95
95
|
const buildResult = await containerRuntime.build(actionDir, tag, dockerfileRelative);
|
|
96
96
|
if (!buildResult.success) {
|
|
@@ -285,7 +285,7 @@ function actionDirInContainer(container, actionDir) {
|
|
|
285
285
|
let containerDir = container.actionDirs.get(actionDir);
|
|
286
286
|
if (!containerDir) {
|
|
287
287
|
const hash = crypto
|
|
288
|
-
.createHash('
|
|
288
|
+
.createHash('sha256')
|
|
289
289
|
.update(actionDir)
|
|
290
290
|
.digest('hex')
|
|
291
291
|
.slice(0, 12);
|