Skip to content

Commit

Permalink
fix: checks SHA only if the step contains uses
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Nicolaie dit Clairville committed Oct 27, 2021
1 parent fc7b8f0 commit a81df45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async function run() {
} else if (steps !== undefined) {
for (const step of steps) {
const uses = step['uses'];
if (!assertUsesSHA(uses)) {
if (uses !== undefined && !assertUsesSHA(uses)) {
actionHasError = true;
fileHasError = true;

Expand Down

0 comments on commit a81df45

Please sign in to comment.