-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba9bc9a
commit 4e8be34
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,3 +367,50 @@ jobs: | |
name: e2e-report | ||
path: testing/e2e/playwright-report/ | ||
retention-days: 30 | ||
|
||
veracode: | ||
name: Zip and Upload files to Veracode | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Zip files for veracode | ||
shell: bash | ||
run: | | ||
sourceDirs=("apps" "packages") | ||
outputFile="itwui-veracode.zip" | ||
excludedPaths=( | ||
".git/*" | ||
"**/backstop/*" | ||
"**/cypress*/*" | ||
) | ||
zipCommand="zip -r $outputFile" | ||
for dir in "${sourceDirs[@]}"; do | ||
zipCommand+=" $dir" | ||
done | ||
for path in "${excludedPaths[@]}"; do | ||
zipCommand+=" -x \"$path\"" | ||
done | ||
eval $zipCommand | ||
if [[ $? -eq 0 ]]; then | ||
echo "Zip file created successfully" | ||
else | ||
echo "An error occurred while creating the zip file" | ||
exit 1 | ||
fi | ||
- name: Upload & scan | ||
uses: veracode/[email protected] | ||
with: | ||
appname: 'iTwinUI - UX (ITWUI - 3418)' | ||
filepath: 'itwui-veracode.zip' | ||
vid: ${{ secrets.VERACODE_ID }} | ||
vkey: ${{ secrets.VERACODE_SECRET_KEY }} |