nowpayments-api-php

Форк
0
54 строки · 2.4 Кб
1
# This workflow uses actions that are not certified by GitHub.
2
# They are provided by a third-party and are governed by
3
# separate terms of service, privacy policy, and support
4
# documentation.
5

6
# This is a basic workflow to help you get started with Using Checkmarx CxFlow Action
7

8
name: CxFlow
9

10
on:
11
  push:
12
    branches: [ main ]
13
  pull_request:
14
    # The branches below must be a subset of the branches above
15
    branches: [ main ]
16
  schedule:
17
    - cron: '30 21 * * 4'
18

19
# A workflow run is made up of one or more jobs that can run sequentially or in parallel - this job is specifically configured to use the Checkmarx CxFlow Action
20
permissions:
21
  contents: read
22

23
jobs:
24
  # This workflow contains a single job called "build"
25
  build:
26
    # The type of runner that the job will run on - Ubuntu is required as Docker is leveraged for the action
27
    permissions:
28
      contents: read # for actions/checkout to fetch code
29
      issues: write # for checkmarx-ts/checkmarx-cxflow-github-action to write feedback to github issues
30
      pull-requests: write # for checkmarx-ts/checkmarx-cxflow-github-action to write feedback to PR
31
      security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
32
    runs-on: ubuntu-latest
33

34
    # Steps require - checkout code, run CxFlow Action, Upload SARIF report (optional)
35
    steps:
36
    # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
37
    - uses: actions/checkout@v2
38
    # Runs the Checkmarx Scan leveraging the latest version of CxFlow - REFER to Action README for list of inputs
39
    - name: Checkmarx CxFlow Action
40
      uses: checkmarx-ts/checkmarx-cxflow-github-action@9975af7d6b957abec9ee9646effa3fb3b82c5314
41
      with:
42
        project: ${{ secrets.CHECKMARX_PROJECT }}
43
        team: ${{ secrets.CHECKMARX_TEAMS }}
44
        checkmarx_url: ${{ secrets.CHECKMARX_URL }}
45
        checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }}
46
        checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }}
47
        checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }}
48
        scanners: sast
49
        params: --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref }} --cx-flow.filterSeverity --cx-flow.filterCategory
50
    # Upload the Report for CodeQL/Security Alerts
51
    - name: Upload SARIF file
52
      uses: github/codeql-action/upload-sarif@v1
53
      with:
54
        sarif_file: cx.sarif
55

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.