Skip to content

Commit a438882

Browse files
authored
fix: command in installer Action (#396)
* update Signed-off-by: laurentsimon <[email protected]>
1 parent 901c5f7 commit a438882

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

actions/installer/dist/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ function run() {
179179
// Validate binary provenance
180180
try {
181181
const { exitCode, stdout, stderr } = yield exec.getExecOutput(`${bootstrapVerifierPath}`, [
182-
`-artifact-path=${downloadedBinaryPath}`,
183-
`-provenance=${downloadedProvenancePath}`,
184-
`-source=github.com/slsa-framework/slsa-verifier`,
185-
`-tag=${version}`,
182+
"verify-artifact", downloadedBinaryPath,
183+
"--provenance-path", downloadedProvenancePath,
184+
"--source-uri", "github.com/slsa-framework/slsa-verifier",
185+
"--source-tag", version,
186186
]);
187187
if (exitCode !== 0) {
188188
throw new Error(`Unable to verify binary provenance. Aborting installation. stdout: ${stdout}; stderr: ${stderr}`);

actions/installer/dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/installer/src/index.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,14 @@ async function run(): Promise<void> {
167167
const { exitCode, stdout, stderr } = await exec.getExecOutput(
168168
`${bootstrapVerifierPath}`,
169169
[
170-
`-artifact-path=${downloadedBinaryPath}`,
171-
`-provenance=${downloadedProvenancePath}`,
172-
`-source=github.com/slsa-framework/slsa-verifier`,
173-
`-tag=${version}`,
170+
"verify-artifact",
171+
downloadedBinaryPath,
172+
"--provenance-path",
173+
downloadedProvenancePath,
174+
"--source-uri",
175+
"github.com/slsa-framework/slsa-verifier",
176+
"--source-tag",
177+
version,
174178
]
175179
);
176180
if (exitCode !== 0) {

0 commit comments

Comments
 (0)