forked from APIStacey/crAPI
-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (40 loc) · 1.63 KB
/
Copy pathapisec-scan.yml
File metadata and controls
50 lines (40 loc) · 1.63 KB
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
# This is a starter workflow to help you get started with APIsec-Scan Actions
name: APIsec
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "develop" branch
# Customize trigger events based on your DevSecOps processes.
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: '26 23 * * 4'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
Trigger_APIsec_scan:
permissions:
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-latest
steps:
- name: APIsec scan
uses: apisec-inc/apisec-run-scan@v1.0.6
with:
# The APIsec username with which the scans will be executed
apisec-username: ${{ secrets.apisec_username }}
# The Password of the APIsec user with which the scans will be executed
apisec-password: ${{ secrets.apisec_password}}
# The name of the project for security scan
apisec-project: "crAPI"
# The name of the sarif format result file The file is written only if this property is provided.
# apisec-fail-on-vuln-severity: "High"
sarif-result-file: "apisec-results.sarif"
# apisec-email-report: true
- name: Import results
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ./apisec-results.sarif