Skip to content

Commit 71b425f

Browse files
committed
feat(COD-4237): remove the SCA version check
1 parent 8c0de50 commit 71b425f

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

action.yaml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -63,42 +63,19 @@ runs:
6363
echo "Lacework context ID: $LACEWORK_CONTEXT_ID"
6464
echo "LACEWORK_CONTEXT_ID=$(echo $LACEWORK_CONTEXT_ID)" >> $GITHUB_ENV
6565
echo "LACEWORK_ACTION_REF=$(echo $LACEWORK_ACTION_REF)" >> $GITHUB_ENV
66-
SCA_VERSION=0.1.23
6766
curl https://raw.githubusercontent.com/lacework/go-sdk/main/cli/install.sh | bash
68-
KEY="$(date +'%Y-%m-%d')"
69-
KEY="$KEY-$RUNNER_OS-$RUNNER_ARCH"
70-
KEY="$KEY-sca-$SCA_VERSION"
71-
echo "sca-version=$SCA_VERSION" >> $GITHUB_OUTPUT
72-
HASH="$(echo $KEY | md5sum | head -c 8)"
73-
echo "cache-key=$HASH" >> $GITHUB_OUTPUT
74-
- id: cache
75-
uses: actions/cache/restore@v3
76-
with:
77-
path: ~/.config/lacework/components
78-
key: lacework-${{ steps.init.outputs.cache-key }}
7967
- name: Sets LW_LOG var for debug
8068
shell: bash
8169
if: ${{ inputs.debug == 'true' }}
8270
run: |
8371
echo "LW_LOG=debug" >> $GITHUB_ENV
84-
- if: steps.cache.outputs.cache-hit != 'true'
72+
- name: Install Lacework CLI component
8573
shell: bash
8674
run: |
87-
echo "::group::Installing Lacework CLI components"
88-
if [[ "${{ steps.init.outputs.sca-version }}" != "" ]]; then
89-
lacework --noninteractive -a "${LW_ACCOUNT_NAME}" -k "${LW_API_KEY}" -s "${LW_API_SECRET}" component install sca --version "${{ steps.init.outputs.sca-version }}"
90-
fi
91-
echo "::endgroup::"
92-
echo "::group::Printing Lacework CLI information"
75+
lacework --noninteractive -a "${LW_ACCOUNT_NAME}" -k "${LW_API_KEY}" -s "${LW_API_SECRET}" component install sca
9376
lacework --noninteractive -a "${LW_ACCOUNT_NAME}" -k "${LW_API_KEY}" -s "${LW_API_SECRET}" version
94-
echo "::endgroup::"
9577
env:
9678
CDK_DOWNLOAD_TIMEOUT_MINUTES: 2
97-
- if: steps.cache.outputs.cache-hit != 'true'
98-
uses: actions/cache/save@v3
99-
with:
100-
path: ~/.config/lacework/components
101-
key: lacework-${{ steps.init.outputs.cache-key }}
10279
- uses: actions/setup-node@v3
10380
with:
10481
node-version: 16

0 commit comments

Comments
 (0)