Skip to content

Commit 74863d2

Browse files
committed
action: Limit the extracted files to slsactl
This ensures that any additional file is not extracted, this avoids git pollution as files such as LICENSE and README.md are extracted. Signed-off-by: Paulo Gomes <[email protected]>
1 parent 8c9076e commit 74863d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/install-slsactl/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ runs:
7979
echo "Installing ${FILE}"
8080
curl -LO "https://${REPO}/releases/download/${VERSION}/${FILE}"
8181
grep "${FILE}" "slsactl_${VERSION#v}_checksums.txt" | sha256sum -c
82-
tar -xf "${FILE}"
82+
tar -xf "${FILE}" slsactl
8383
else
8484
echo 'Version is not "latest" nor starts with "v". Fallback to go install with commit ID.'
8585
GOBIN=$(pwd) go install "github.com/rancherlabs/slsactl@${VERSION}"

0 commit comments

Comments
 (0)