Skip to content

Commit b912dfc

Browse files
Balijepalli Vamshi KrishnaBalijepalli Vamshi Krishna
authored andcommitted
use secure repo token
1 parent 42f920d commit b912dfc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

remediation/workflow/hardenrunner/addaction.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ func AddAction(inputYaml, action string, pinActions, pinToImmutable bool, skipCo
5151
}
5252

5353
if updated && pinActions {
54-
out, _, _ = pin.PinAction(action, out, nil, pinToImmutable, nil)
54+
out, _, err = pin.PinAction(action, out, nil, pinToImmutable, nil)
55+
if err != nil {
56+
return out, updated, err
57+
}
5558
}
5659

5760
return out, updated, nil

0 commit comments

Comments
 (0)