forked from mf-labs/witcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.sh
More file actions
executable file
·61 lines (46 loc) · 2.65 KB
/
commands.sh
File metadata and controls
executable file
·61 lines (46 loc) · 2.65 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
51
52
53
54
55
56
57
58
59
# GHAS commands
node witcher.js -m ghas -a status -r all
node witcher.js -m ghas -a status -r offsec-sast-testing
node witcher.js -m ghas -a enable -r offsec-sast-testing
node witcher.js -m ghas -a disable -r offsec-sast-testing
# Secret Scanning commands
node witcher.js -m secret-scanning -a status -r all
node witcher.js -m secret-scanning -a status -r offsec-sast-testing
node witcher.js -m secret-scanning -a enable -r offsec-sast-testing
node witcher.js -m secret-scanning -a disable -r offsec-sast-testing
# Dependabot Commands
node witcher.js -m dependabot -a status -r all
node witcher.js -m dependabot -a status -r offsec-sast-testing
node witcher.js -m dependabot -a enable -r offsec-sast-testing
node witcher.js -m dependabot -a disable -r offsec-sast-testing
node witcher.js -m dependabot -a deploy --jira-ticket PROJECT-123 -r offsec-sast-testing
node witcher.js -m dependabot -a delete --jira-ticket PROJECT-123 -r offsec-sast-testing
# CodeQL Commands
node witcher.js -m codeql -a status -r all
node witcher.js -m codeql -a status -r offsec-sast-testing
node witcher.js -m codeql -a enable -r offsec-sast-testing
node witcher.js -m codeql -a disable -r offsec-sast-testing
node witcher.js -m codeql -a deploy -r offsec-sast-testing --jira-ticket PROJECT-123
node witcher.js -m codeql -a delete -r offsec-sast-testing --jira-ticket PROJECT-123
# Workflows Commands
node witcher.js -m workflows -a status -r offsec-sast-code --workflow-file codeql.yml
node witcher.js -m workflows -a enable -r offsec-sast-code --workflow-file codeql.yml
node witcher.js -m workflows -a disable -r offsec-sast-code --workflow-file codeql.yml
# IAC
node witcher.js -m iac -a status -r all
node witcher.js -m iac -a status -r offsec-sast-testing
node witcher.js -m iac -a enable -r offsec-sast-testing
node witcher.js -m iac -a disable -r offsec-sast-testing
node witcher.js -m iac -a deploy -r offsec-sast-testing --jira-ticket PROJECT-123
node witcher.js -m iac -a delete -r offsec-sast-testing --jira-ticket PROJECT-123
# CodeQL Alerts
node witcher.js -m codeql -a alerts -r all
node witcher.js -m codeql -a alerts -r all --jira --slack
# Daily Summary
node witcher.js --daily-summary -m ALL -a status
node witcher.js --daily-summary -m ALL -a status --slack --jira
# Mass Action
node witcher.js --mass-action -a disable -m ghas --repo-file mass_action.txt --jira-ticket PROJECT-123
node witcher.js --mass-action -a enable -m ghas --repo-file mass_action.txt --jira-ticket PROJECT-123
node witcher.js --mass-action -a deploy -m codeql --repo-file mass_action.txt --jira-ticket PROJECT-123
node witcher.js --mass-action -a delete -m dependabot --repo-file mass_action.txt --jira-ticket PROJECT-123