Skip to content

Commit

Permalink
add mend scans
Browse files Browse the repository at this point in the history
  • Loading branch information
jmecosta committed Sep 3, 2024
1 parent 5739cf0 commit 271acfe
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/mend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Mend Analysis

on:
push:
branches: [ "master" ]


jobs:
build:
name: Run Analysis
runs-on: ubuntu-latest
steps:
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis


- name: Install Mend Analyser
env:
GITHUB_API_TOKEN: ${{ secrets.ORG_TOOLS_ACCESS_TOKEN }}
run: |
mkdir ~/.trimbletools --parents
cd ~/.trimbletools
wget https://github.com/jmecosta/jmecosta/releases/download/1.0.3/download.sh
wget https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
chmod +x download.sh
./download.sh TrimbleSolutionsCorporation BatMiscTools 1.0.0 TrimbleMendWrapper.zip TrimbleMendWrapper
cd $OLDPATH
- name: Restore
run: dotnet restore --verbosity detailed
- name: Build
run: dotnet build
- name: Analyze
run: |
~/.trimbletools/TrimbleMendWrapper/TrimbleMendWrapper -j ~/.trimbletools/wss-unified-agent.jar -d . -c whitesource.config-tekla -o ${{secrets.MEND_ORG_TOKEN}} -p ${{secrets.MEND_PRODUCT_TOKEN}} --additionalagentargs "/project:TeklaEnvService-${{ github.ref_name }}"
34 changes: 34 additions & 0 deletions whitesource.config-tekla
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
####################################################################
# WhiteSource configuration file
####################################################################
checkPolicies=false
forceCheckAllDependencies=false
offline=false

apiKey=<OrganisationApiKeyValue>

productName=
productVersion=
productToken=<productTokenValue>

projectName=Tekla.Examples:MultiTeklaStructuresMonitor
projectVersion=

##########################################################################################
# Includes/Excludes Glob patterns - PLEASE USE ONLY ONE EXCLUDE LINE AND ONE INCLUDE LINE
##########################################################################################
# Want to know about GLOB patterns that are used in the includes + excludes?
# See https://en.wikipedia.org/wiki/Glob_(programming)
# Want to test your glob patterns? See http://www.globtester.com/
#########################################################################################
#includes=**/*.c **/*.cc **/*.cp **/*.cpp **/*.cxx **/*.c++ **/*.h **/*.hpp **/*.hxx
#includes=**/*.m **/*.mm **/*.js **/*.php
#includes=**/*.jar
#includes=**/*.gem **/*.rb
includes=**/*.dll **/*.cs **/*.c# **/*.csharp
#includes=**/*.tgz **/*.deb **/*.gzip **/*.rpm **/*.tar.bz2
#includes=**/*.zip **/*.tar.gz **/*.egg **/*.whl **/*.py
#excludes=**/*sources.jar **/*javadoc.jar
excludes=**/*Tests.csproj **/packages/**
case.sensitive.glob=false
followSymbolicLink=true

0 comments on commit 271acfe

Please sign in to comment.