diff --git a/.github/workflows/hl.env b/.github/workflows/hl.env new file mode 100644 index 00000000..7b187ed6 --- /dev/null +++ b/.github/workflows/hl.env @@ -0,0 +1,5 @@ +companyId=14524 +applicationId=177023 +serverUrl=https://rpa.casthighlight.com +ignoreDirectories=.github,examples +snapshotDatetime=1681207200000 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..4e6baf1d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +jobs: + scan: + runs-on: ubuntu-latest + # use the prod environment, where the secret CAST_HIGHLIGHT_API_TOKEN is defined + environment: prod + + + + steps: + - uses: actions/checkout@v2 + + + + - name: get company and application ids + run: | + cat .github/workflows/hl.env >> $GITHUB_ENV + + + + - name: scan project source code + run: | + docker run --rm -v $(pwd):/s -v /tmp:/w casthighlight/hl-agent-cli \ + --sourceDir /s \ + --workingDir /w \ + --tokenAuth ${{ secrets.CAST_HIGHLIGHT_API_TOKEN }} \ + --companyId ${{ env.companyId }} \ + --applicationId ${{ env.applicationId }} \ + --serverUrl ${{ env.serverUrl }} \ + --ignoreDirectories ${{ env.ignoreDirectories }} diff --git a/src/main/java/servlets/AdminLoginServlet.java b/src/main/java/servlets/AdminLoginServlet.java index 4d173607..8c721b27 100644 --- a/src/main/java/servlets/AdminLoginServlet.java +++ b/src/main/java/servlets/AdminLoginServlet.java @@ -46,4 +46,4 @@ public void service(ServletRequest req, ServletResponse res) throws IOException, e.printStackTrace(); } } -} \ No newline at end of file +} diff --git a/src/main/java/servlets/UserLoginServlet.java b/src/main/java/servlets/UserLoginServlet.java index c4a4357f..684b12eb 100644 --- a/src/main/java/servlets/UserLoginServlet.java +++ b/src/main/java/servlets/UserLoginServlet.java @@ -40,4 +40,4 @@ public void service(ServletRequest req, ServletResponse res) throws IOException, e.printStackTrace(); } } -} \ No newline at end of file +}