Skip to content

Devtest #98

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

Open
wants to merge 18 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
16 changes: 0 additions & 16 deletions .checkmarx/config.yaml

This file was deleted.

27 changes: 14 additions & 13 deletions .github/workflows/cx.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
name: cx

on:
pull_request:
branches:
- master
# push:
push:
branches:
- master

jobs:
ast_scan:
runs-on: ubuntu-latest
name: Checkmarx scan run

steps:
- name: Run scan
uses: CheckmarxDev/ast-github-action@more_engines
id: scan
- name: Checkout code
uses: actions/checkout@v2
- name: Checkmarx AST CLI Action
uses: checkmarx/ast-github-action@main
with:
github_repo_token: ${{ secrets.GITHUB_TOKEN }}
ast_uri: ${{ secrets.AST_URI }}
ast_access_key_id: ${{ secrets.AST_ACCESS_KEY_ID }}
ast_access_key_secret: ${{ secrets.AST_ACCESS_KEY_SECRET }}
sca_user: ${{ secrets.SCA_USER }}
sca_password: ${{ secrets.SCA_PASSWORD }}
action_scan_complete_timeout_secs: 600
high_results_threshold: 0
medium_results_threshold: 10
base_uri: https://us.ast.checkmarx.net/
cx_tenant: workshop
cx_api_key: ${{ secrets.CX_API_KEY }}

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.26</version>
<version>5.2.26</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
Expand Down
23 changes: 23 additions & 0 deletions target/classes/Users.hbm.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

<class name="org.cysecurity.cspf.jvl.model.orm.Users" table="users">

<id name="id" column="ID">
<generator class="native" />
</id>

<property name="username">
<column name="username" length="16" not-null="true" />
</property>

<property name="about">
<column name="about" length="16" not-null="true" />
</property>

</class>
</hibernate-mapping>