Skip to content

Commit 3d53a7a

Browse files
committed
delete git lfs
1 parent b77d25b commit 3d53a7a

File tree

6 files changed

+6
-65
lines changed

6 files changed

+6
-65
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v4
9-
with:
10-
lfs: true
11-
12-
- name: Install Git LFS
13-
run: |
14-
sudo apt-get update
15-
sudo apt-get install git-lfs
16-
git lfs install
179

1810
- name: Use Node.js 22.11.0
1911
uses: actions/[email protected]
@@ -25,24 +17,6 @@ jobs:
2517
run: npm run lint
2618
- run: npm run build --if-present
2719

28-
- name: Check existence of cx-linux binary
29-
run: |
30-
if [ ! -f "src/main/wrapper/resources/cx-linux" ]; then
31-
echo "cx-linux binary does not exist"; exit 1;
32-
fi
33-
34-
- name: Check existence of cx.exe binary
35-
run: |
36-
if [ ! -f "src/main/wrapper/resources/cx.exe" ]; then
37-
echo "cx.exe binary does not exist"; exit 1;
38-
fi
39-
40-
- name: Check existence of cx-mac binary
41-
run: |
42-
if [ ! -f "src/main/wrapper/resources/cx-mac" ]; then
43-
echo "cx-mac binary does not exist"; exit 1;
44-
fi
45-
4620
- name: Run tests
4721
env:
4822
CX_CLIENT_ID: ${{ secrets.CX_CLIENT_ID}}

.github/workflows/update-cli.yml

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,29 @@
1-
name: Update Checkmarx AST CLI
2-
1+
name: Update checkmarx ast cli
32
on:
43
workflow_dispatch:
5-
inputs:
6-
new_cli_version:
7-
description: 'New CLI version (optional)'
8-
required: false
94
schedule:
105
- cron: '0 0 * * *'
116

127
jobs:
138
update-checkmarx-cli:
149
runs-on: ubuntu-latest
15-
1610
steps:
1711
- uses: actions/checkout@v4
1812

19-
# Fetch the latest Checkmarx AST CLI version
2013
- name: Get Latest Checkmarx API version
2114
id: checkmarx-ast-cli
2215
run: |
23-
if [ "${{ github.event.inputs.new_cli_version }}" ]; then
24-
LATEST_VERSION=${{ github.event.inputs.new_cli_version }}
25-
else
26-
LATEST_VERSION=$(curl -sL https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | jq -r ".tag_name")
27-
fi
28-
CURRENT_VERSION=$(<checkmarx-ast-cli.version)
29-
echo ::set-output name=release_tag::$LATEST_VERSION
30-
echo ::set-output name=current_tag::$CURRENT_VERSION
16+
echo ::set-output name=release_tag::$(curl -sL https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | jq -r ".tag_name")
17+
echo ::set-output name=current_tag::$(<checkmarx-ast-cli.version)
3118
32-
# Update the version file if the latest version differs
33-
- name: Update Checkmarx CLI version in version file
19+
- name: Update Checkmarx cli version
3420
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
3521
env:
3622
RELEASE_TAG: ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
3723
run: |
24+
# Update current release
3825
echo ${{ steps.checkmarx-ast-cli.outputs.release_tag }} > checkmarx-ast-cli.version
3926
40-
# Update the TypeScript file's cliDefaultVersion field
41-
- name: Update cliDefaultVersion in CxInstaller.ts
42-
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
43-
env:
44-
NEW_CLI_VERSION: ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
45-
run: |
46-
FILE_PATH="src/main/osinstaller/CxInstaller.ts"
47-
# Ensure that 'cliDefaultVersion' is updated correctly
48-
sed -i "s/\(cliDefaultVersion = '\)[^']*\(';\)/\1${NEW_CLI_VERSION}\2/" $FILE_PATH
49-
50-
# Create a Pull Request with the version changes
5127
- name: Create Pull Request
5228
if: steps.checkmarx-ast-cli.outputs.current_tag != steps.checkmarx-ast-cli.outputs.release_tag
5329
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c #v6

checkmarx-ast-cli.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.5
1+
2.2.5

src/main/wrapper/resources/cx-linux

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/main/wrapper/resources/cx-mac

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/main/wrapper/resources/cx.exe

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)