Skip to content

Commit 0a210d5

Browse files
Make preflight and verify scripts executable before attempting to execute them
Co-authored-by: Eric Maydeck <126706864+emaydeck-mozilla@users.noreply.github.com>
1 parent 6552811 commit 0a210d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
TMP="$RUNNER_TEMP/preflight.sh"
9494
9595
if [[ -f "$PREFLIGHT_SCRIPT" ]]; then
96+
chmod +x "$PREFLIGHT_SCRIPT"
9697
bash "$PREFLIGHT_SCRIPT"
9798
else
9899
printf '%s\n' "$PREFLIGHT_SCRIPT" > "$TMP"
@@ -121,6 +122,7 @@ jobs:
121122
TMP="$RUNNER_TEMP/verify.sh"
122123
123124
if [[ -f "$VERIFY_SCRIPT" ]]; then
125+
chmod +x "$VERIFY_SCRIPT"
124126
bash "$VERIFY_SCRIPT"
125127
else
126128
printf '%s\n' "$VERIFY_SCRIPT" > "$TMP"

0 commit comments

Comments
 (0)