This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
forked from mdings/electron-tooltip
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (62 loc) · 2.63 KB
/
security.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# This workflow is to automate Checkmarx SAST scans. It runs on a push to the main branch.
#
# The following GitHub Secrets must be first defined:
# - CHECKMARX_URL
# - CHECKMARX_USER
# - CHECKMARX_PASSWORD
# - CHECKMARX_CLIENT_SECRET
#
# For full documentation, including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action
name: Security Scans
on:
push:
branches:
- 'release\/*'
- 'hotfix\/*'
- test-whitesource
- test-cx-scan
- test-gha-security
jobs:
Checkmarx:
name: Checkmarx CxFlow Action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkmarx CxFlow Action
uses: checkmarx-ts/[email protected] #Github Action version
with:
# report-file: checkmarx.json
# auth-scopes: access_control_api sast_rest_api
# version: '9.4'
break_build: false
checkmarx_url: ${{ vars.CHECKMARX_URL }} # To be stored in GitHub Secrets.
checkmarx_username: ${{ vars.CHECKMARX_USERNAME }} # To be stored in GitHub Secrets.
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }} # To be stored in GitHub Secrets.
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }} # To be stored in GitHub Secrets.
params: --namespace=${{ github.repository_owner }} --checkmarx.settings-override=true --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref_name }} --cx-flow.filterSeverity --cx-flow.filterCategory --checkmarx.disable-clubbing=true
preset: Blackbaud SAST
project: ${{ github.event.repository.name }} # <-- Insert Checkmarx SAST Project Name
team: /CxServer/SP/Company/Everfi
scanners: sast
Mend:
name: Mend Scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: get_branch_name
- name: Mend
env:
WHITESOURCE_API_KEY: ${{ secrets.WHITESOURCE_API_KEY }}
WHITESOURCE_API_BASE_URL: ${{ vars.WHITESOURCE_API_BASE_URL }}
WHITESOURCE_SERVER_URL: ${{ vars.WHITESOURCE_SERVER_URL }}
BRANCH: ${{ steps.get_branch_name.outputs.branch }}
shell: bash
run: |
echo $'\n'projectName=${{ github.event.repository.name }} >>scripts/whitesource/agent.config
echo $'\n'productName=Forge >>scripts/whitesource/agent.config
bash ./scripts/whitesource/scan.sh