Skip to content

Commit

Permalink
Remove removed description field from scan examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-jokic committed Feb 11, 2024
1 parent 2276479 commit 742f60c
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions content/1.workflows/1.syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ You can have the unlimited number of scans, as long as their names are unique.
```yaml
scans:
- name: assetfinder
description: Example running assetfinder
on:
cron: 0 * * * * *
cron: 0 0 * * * *
steps:
- run: assetfinder example.com
shell: bash
Expand Down Expand Up @@ -81,7 +80,6 @@ Example:
```yaml
scans:
- name: assetfinder
description: Example running assetfinder
on:
cron: 0 * * * * *
```
Expand Down Expand Up @@ -183,8 +181,25 @@ groups:
uses:
- scan: assetfinder
file: assetfinder.out
grep: (.*)
grep: (.*) # Define a pattern. Here, use the entire line
extract: $1
- scan: subfinder
file: subfinder.out # Since no pattern is used, defaults to the entire line
scans:
- name: assetfinder
on:
cron: 0 * * * * *
steps:
- run: assetfinder ${{ var.DOMAIN }} | tee $BH_RESULT/assetfinder.out
shell: bash
- name: subfinder
on:
cron: 30 * * * * *
steps:
- run: subfinder ${{ var.DOMAIN }} | tee $BH_RESULT/subfinder.out
shell: bash
# ...
```

#### Name based references
Expand Down

0 comments on commit 742f60c

Please sign in to comment.