Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestPullRequest #162

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/hl.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
companyId=14524
applicationId=177023
serverUrl=https://rpa.casthighlight.com
ignoreDirectories=.github,examples
snapshotDatetime=1681207200000
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion src/main/java/servlets/AdminLoginServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ public void service(ServletRequest req, ServletResponse res) throws IOException,
e.printStackTrace();
}
}
}
}
2 changes: 1 addition & 1 deletion src/main/java/servlets/UserLoginServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public void service(ServletRequest req, ServletResponse res) throws IOException,
e.printStackTrace();
}
}
}
}