Skip to content

Commit 307cf19

Browse files
author
Cole Kennedy
committed
.
1 parent f7366cb commit 307cf19

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

index.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ async function downloadAndExtractAction(actionRef) {
358358

359359
// Run an action with Witness
360360
async function runActionWithWitness(actionDir, witnessOptions) {
361-
const {
361+
// Use 'let' so we can reassign values later
362+
let {
362363
step,
363364
archivistaServer,
364365
attestations,
@@ -422,7 +423,7 @@ async function runActionWithWitness(actionDir, witnessOptions) {
422423
const inputPrefix = 'input-';
423424
const nestedInputs = {};
424425

425-
// Get all inputs that start with 'input-'
426+
// Get all inputs that start with 'INPUT_'
426427
Object.keys(process.env)
427428
.filter(key => key.startsWith('INPUT_'))
428429
.forEach(key => {
@@ -572,7 +573,8 @@ function extractDesiredGitOIDs(output) {
572573

573574
// Run a direct command with Witness
574575
async function runDirectCommandWithWitness(command, witnessOptions) {
575-
const {
576+
// Use 'let' so we can reassign values later
577+
let {
576578
step,
577579
archivistaServer,
578580
attestations,
@@ -728,4 +730,4 @@ run()
728730
core.debug('Forcing process exit to prevent hanging');
729731
process.exit(1);
730732
}, 500);
731-
});
733+
});

0 commit comments

Comments
 (0)