Skip to content

Commit 16f42af

Browse files
Merge pull request #147 from skyflowapi/SK-1633-fix-security-vulnerabilities
SK-1633 Run Endor labs scan to identify security vulnerabilities
2 parents 1932e13 + 6337598 commit 16f42af

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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"

0 commit comments

Comments
 (0)