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

Test PR #80

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
40 changes: 40 additions & 0 deletions .github/workflows/checkmarx-sca-scan-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow is to automate Checkmarx SCA scans. It runs on a push to the main branch.
#
# The following GitHub Secrets must be first defined:
# - CHECKMARX_SCA_USERNAME
# - CHECKMARX_SCA_PASSWORD
##
# The following variables must be inserted below:
# - <ProjectName>
# - <SCATenant>
#
# For full documentation, including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action

name: Checkmarx SCA Scan (Pull Request)
on:
pull_request:
types: [opened, reopened, synchronize] # Types specify which pull request events will trigger the workflow. For more events refer Github Actions documentation.
branches:
- master
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkmarx CxFlow Action
uses: checkmarx-ts/[email protected] # GitHub Action version
with:
project: RyanW_SCA_Enablement_Lab
sca_api_url: https://api.scacheckmarx.com
sca_app_url: https://sca.scacheckmarx.com
sca_access_control_url: https://platform.checkmarx.net
sca_tenant: SCA-Champions
sca_username: ${{ secrets.CHECKMARX_SCA_USERNAME }} # To be stored in GitHub Secrets.
sca_password: ${{ secrets.CHECKMARX_SCA_PASSWORD }} # To be stored in GitHub Secrets.
break_build: false
scanners: sca
bug_tracker: GITHUBPULL
params: --codebash-url='true' --github.error-merge=true --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.head_ref }} --merge-id=${{ github.event.number }}
39 changes: 39 additions & 0 deletions .github/workflows/checkmarx-sca-scan-on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow is to automate Checkmarx SCA scans. It runs on a push to the main branch.
#
# The following GitHub Secrets must be first defined:
# - CHECKMARX_SCA_USERNAME
# - CHECKMARX_SCA_PASSWORD
##
# The following variables must be inserted below:
# - <ProjectName>
# - <SCATenant>
#
# For full documentation, including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action

name: Checkmarx SCA Scan (Push)
on:
push:
branches:
- main
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkmarx CxFlow Action
uses: checkmarx-ts/[email protected] # GitHub Action version
with:
project: RyanW_SCA_Enablement_Lab_2
sca_api_url: https://api.scacheckmarx.com
sca_app_url: https://sca.scacheckmarx.com
sca_access_control_url: https://platform.checkmarx.net
sca_tenant: SCA-Champions
sca_username: ${{ secrets.CHECKMARX_SCA_USERNAME }} # To be stored in GitHub Secrets.
sca_password: ${{ secrets.CHECKMARX_SCA_PASSWORD }} # To be stored in GitHub Secrets.
break_build: false
scanners: sca
bug_tracker: GitHub
params: --sca.team-for-new-projects='/CxServer/SCA-PM/Champions/SamQbush' --sca.filter-score=8.0 --sca.filter-severity=HIGH --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref }}
2 changes: 1 addition & 1 deletion src/main/webapp/Register.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@
<tr><td><input type="submit" name="Register" value="Register"/></td></tr>
</table>
</form>
<%@ include file="footer.jsp" %>
<%@ include file="footer.jsp" %>
6 changes: 3 additions & 3 deletions src/main/webapp/footer.jsp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
</div>

<div class="clear"></div>
</div>

<center> <p>Copyrights &copy; <b><a href="http://www.cysecurity.org">Cyber Security & Privacy Foundation </a> </p></b></center>



</div>
</body>
</html>
</html>