Skip to content
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
34 changes: 34 additions & 0 deletions .github/workflows/Feedbackapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is a basic workflow to help you get started with Actions

name: feedbackapp

# Controls when the workflow will run
on: [push,pull_request,workflow_dispatch]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# This step checks out a copy of your repository.
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkmarx scan
uses: checkmarx/ast-github-action@main
with:
base_uri: https://ast-master-components.dev.cxast.net/
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
cx_tenant: ${{ secrets.CX_TENANT }}
additional_params: --project-tags 'feedback-assignee:Yoav ast' --tags 'feedback-assignee:Vered Shahar' --debug








17 changes: 17 additions & 0 deletions .github/workflows/PR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Checkmarx AST Scan
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkmarx AST CLI Action
uses: checkmarx/ast-github-action@main #Github Action version
with:
base_uri: https://eu.ast.checkmarx.net/
cx_tenant: cx_ast_pm_yoav_ast
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
additional_params: --debug --scan-types iac-security
32 changes: 32 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This is a basic workflow to help you get started with Actions

name: Checkmarx Sarif Integration

# Controls when the workflow will run
on: [push,pull_request,workflow_dispatch]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# This step checks out a copy of your repository.
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkmarx scan
uses: checkmarx/ast-github-action@main
with:
base_uri: https://ast-master-components.dev.cxast.net/
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
cx_tenant: ${{ secrets.CX_TENANT }}
additional_params: --report-format sarif --output-path .
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: cx_result.sarif
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# GH Demo
main
test
22 changes: 22 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
pool:
name: Azure Pipelines

jobs:
- job: Test
pool:
vmImage: 'windows-2019'
steps:
# - task: PowerShell@2
# env:
# CX_APIKEY: $(CX_APIKEY)
# inputs:
# targetType: 'inline'
# script: './cx.exe scan create -s . --project-name myadotest --branch main --debug'

- task: Checkmarx AST@2
inputs:
CheckmarxService: 'CxONE'
projectName: '$(Build.Repository.Name)'
branchName: '$(Build.SourceBranchName)'
tenantName: ''
additionalParams: '--debug'
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,15 @@
<version>1.7.7</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>com.github.codingandcoding</groupId>
<artifactId>servlet-api</artifactId>
<version>3.2.0</version>
</dependency>

<!-- ************* END spring MVC and related dependencies ************** -->

</dependencies>
</project>

#PR
1 change: 1 addition & 0 deletions test/b.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ public static void testData () {
out.println (userData);
printSanitizedName(userData);
}
#PR