Skip to content

Commit e6e24c9

Browse files
Update ci_cd.yml
1 parent 5f28281 commit e6e24c9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci_cd.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- "*"
77
branches:
88
- main
9+
- vupadhya/mendallie
910

1011
env:
1112
MAIN_PYTHON_VERSION: '3.12'
@@ -48,6 +49,35 @@ jobs:
4849
library-name: ${{ env.PACKAGE_NAME }}
4950
operating-system: ${{ matrix.os }}
5051
python-version: ${{ matrix.python-version }}
52+
53+
- name: Set up JDK
54+
uses: actions/setup-java@v4
55+
with:
56+
java-version: '11'
57+
distribution: 'adopt'
58+
59+
- name: Mend Unified Agent Scan
60+
env:
61+
WS_PRODUCTNAME: 'AnsysAllie'
62+
WS_PROJECTNAME: ${{github.event.repository.name}}
63+
WS_GENERATEPROJECTDETAILSJSON: true
64+
WS_GENERATESCANREPORT: true
65+
WS_FILESYSTEMSCAN: true
66+
WS_CHECKPOLICIES: true
67+
WS_FORCECHECKALLDEPENDENCIES: true
68+
WS_SCANREPORTFILENAMEFORMAT: static
69+
WS_FORCEUPDATE_FAILBUILDONPOLICYVIOLATION : true
70+
WS_PYTHON_REQUIREMENTSFILEINCLUDES: "pyproject.toml"
71+
run: |
72+
echo Downloading Mend Unified Agent
73+
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
74+
if [[ "$(curl -sL https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar.sha256)" != "$(sha256sum wss-unified-agent.jar)" ]] ; then
75+
echo "Integrity Check Failed"
76+
else
77+
echo "Integrity Check Passed"
78+
echo Starting Unified Agent Scan
79+
java -jar wss-unified-agent.jar -loglevel debug
80+
fi
5181
5282
docs-style:
5383
name: Documentation Style Check

0 commit comments

Comments
 (0)