Skip to content

Commit

Permalink
chore(COD-2736): remove the SCA version control
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydubreil committed Apr 17, 2024
1 parent c789086 commit f24bb00
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,9 @@ runs:
echo "Lacework context ID: $LACEWORK_CONTEXT_ID"
echo "LACEWORK_CONTEXT_ID=$(echo $LACEWORK_CONTEXT_ID)" >> $GITHUB_ENV
echo "LACEWORK_ACTION_REF=$(echo $LACEWORK_ACTION_REF)" >> $GITHUB_ENV
SCA_VERSION=0.1.4
curl https://raw.githubusercontent.com/lacework/go-sdk/main/cli/install.sh | bash
KEY="$(date +'%Y-%m-%d')"
KEY="$KEY-$RUNNER_OS-$RUNNER_ARCH"
if [[ $TOOLS == *"sca"* ]]; then
KEY="$KEY-sca-$SCA_VERSION"
echo "sca-version=$SCA_VERSION" >> $GITHUB_OUTPUT
fi
HASH="$(echo $KEY | md5sum | head -c 8)"
echo "cache-key=$HASH" >> $GITHUB_OUTPUT
- id: cache
Expand All @@ -97,7 +92,7 @@ runs:
run: |
echo "::group::Installing Lacework CLI components"
if [[ "${{ steps.init.outputs.sca-version }}" != "" ]]; then
lacework --noninteractive -a "${LW_ACCOUNT_NAME}" -k "${LW_API_KEY}" -s "${LW_API_SECRET}" component install sca --version "${{ steps.init.outputs.sca-version }}"
lacework --noninteractive -a "${LW_ACCOUNT_NAME}" -k "${LW_API_KEY}" -s "${LW_API_SECRET}" component install sca
fi
echo "::endgroup::"
echo "::group::Printing Lacework CLI information"
Expand Down

0 comments on commit f24bb00

Please sign in to comment.