File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Endor Labs Scan Java Project
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ java_version :
7+ description : " The version of Java to be used for build"
8+ default : " 1.8"
9+ required : true
10+
11+ jobs :
12+ clone-build-scan :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-java@v4
17+ with :
18+ distribution : zulu
19+ java-version : ${{ github.event.inputs.java_version }}
20+
21+ - name : Create env
22+ id : create-env
23+ run : |
24+ touch .env
25+ echo SKYFLOW_CREDENTIALS=${{ secrets.SKYFLOW_CREDENTIALS }} >> .env
26+ echo TEST_EXPIRED_TOKEN=${{ secrets.TEST_EXPIRED_TOKEN }} >> .env
27+ echo TEST_REUSABLE_TOKEN=${{ secrets.TEST_REUSABLE_TOKEN }} >> .env
28+
29+ - name : Compile Package
30+ run : mvn clean install
31+
32+ - name : Endor Labs SCA Scan
33+ uses : endorlabs/github-action@main
34+ with :
35+ namespace : " skyflow"
36+ api : " https://api.endorlabs.com"
37+ pr : false
38+ enable_github_action_token : true
39+ scan_dependencies : true
40+ additional_args : " --as-default-branch --call-graph-languages=java"
You can’t perform that action at this time.
0 commit comments