Skip to content

Commit

Permalink
fix: command in installer Action (#396)
Browse files Browse the repository at this point in the history
* update

Signed-off-by: laurentsimon <[email protected]>
  • Loading branch information
laurentsimon authored Dec 8, 2022
1 parent 901c5f7 commit a438882
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions actions/installer/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ function run() {
// Validate binary provenance
try {
const { exitCode, stdout, stderr } = yield exec.getExecOutput(`${bootstrapVerifierPath}`, [
`-artifact-path=${downloadedBinaryPath}`,
`-provenance=${downloadedProvenancePath}`,
`-source=github.com/slsa-framework/slsa-verifier`,
`-tag=${version}`,
"verify-artifact", downloadedBinaryPath,
"--provenance-path", downloadedProvenancePath,
"--source-uri", "github.com/slsa-framework/slsa-verifier",
"--source-tag", version,
]);
if (exitCode !== 0) {
throw new Error(`Unable to verify binary provenance. Aborting installation. stdout: ${stdout}; stderr: ${stderr}`);
Expand Down
2 changes: 1 addition & 1 deletion actions/installer/dist/index.js.map

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions actions/installer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,14 @@ async function run(): Promise<void> {
const { exitCode, stdout, stderr } = await exec.getExecOutput(
`${bootstrapVerifierPath}`,
[
`-artifact-path=${downloadedBinaryPath}`,
`-provenance=${downloadedProvenancePath}`,
`-source=github.com/slsa-framework/slsa-verifier`,
`-tag=${version}`,
"verify-artifact",
downloadedBinaryPath,
"--provenance-path",
downloadedProvenancePath,
"--source-uri",
"github.com/slsa-framework/slsa-verifier",
"--source-tag",
version,
]
);
if (exitCode !== 0) {
Expand Down

0 comments on commit a438882

Please sign in to comment.