-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (49 loc) · 1.89 KB
/
apitests.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
name: API Tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 2.7
uses: actions/setup-python@v1
with:
python-version: 2.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Make wheel package
run: make wheel
- name: Install wheel package
run: pip install dist/*.whl
- name: Run commands
env:
SIGSCI_EMAIL: ${{ secrets.API_ACCESS_EMAIL }}
SIGSCI_API_TOKEN: ${{ secrets.API_ACCESS_TOKEN }}
SIGSCI_CORP: "pxmx"
run: |
pysigsci --site pysigsci --get corps
pysigsci --site pysigsci --get corp
pysigsci --site pysigsci --get events
pysigsci --site pysigsci --get requests
pysigsci --site pysigsci --get request-feed --from-time=-30m --until-time=-5m
pysigsci --site pysigsci --get request-rules
pysigsci --site pysigsci --get signal-rules
pysigsci --site pysigsci --get templated-rules
pysigsci --site pysigsci --get advanced-rules
pysigsci --site pysigsci --get rule-lists
pysigsci --site pysigsci --get whitelist
pysigsci --site pysigsci --get blacklist
pysigsci --site pysigsci --get redactions
pysigsci --site pysigsci --get integrations
pysigsci --site pysigsci --get activity
pysigsci --site pysigsci --get header-links
pysigsci --site pysigsci --get agents
pysigsci --site pysigsci --get suspicious-ips
pysigsci --site pysigsci --get top-attacks
pysigsci --site pysigsci --get timeseries-requests --tag XSS
pysigsci --site pysigsci --get overview-report
pysigsci --site pysigsci --get corp-signals
pysigsci --site pysigsci --get site-signals
pysigsci --site pysigsci --get custom-alerts