-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (42 loc) · 1.13 KB
/
test.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
on:
push:
branches:
- master
jobs:
release:
name: Build GitHub Action
runs-on: ubuntu-latest
container: node:16
steps:
- name: Install packages
run: apt-get update && apt-get install -y rsync git
- uses: actions/checkout@v2.3.1
- name: Install dependencies
run: npm ci && npm install -g @vercel/ncc
- name: Build release
run: npm run lint && npm run build && npm run pack
- name: Copy files to release
run: |
mkdir release
cp README.md release/
cp action.yml release/
cp -R dist/ release/dist/
- name: Start NeuraLegion Scan 🏁
id: scan
uses: NeuraLegion/run-scan@release
with:
api_token: ${{ secrets.NEXPLOIT_TOKEN }}
name: GitHub scan ${{ github.sha }}
discovery_types: |
[ "crawler" ]
module: "dast"
crawler_urls: |
[ "https://brokencrystals.com" ]
hosts_filter: |
[ ]
- name: Stop the scan 🛑
id: stop
uses: ./release
with:
api_token: ${{ secrets.NEXPLOIT_TOKEN }}
scan: ${{ steps.scan.outputs.id }}