From 742f60cc081f42ebe08414223e459445e7b6f5ef Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Sun, 11 Feb 2024 20:40:07 +0100 Subject: [PATCH] Remove removed description field from scan examples --- content/1.workflows/1.syntax.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/content/1.workflows/1.syntax.md b/content/1.workflows/1.syntax.md index b80c8a1..884edf5 100644 --- a/content/1.workflows/1.syntax.md +++ b/content/1.workflows/1.syntax.md @@ -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 @@ -81,7 +80,6 @@ Example: ```yaml scans: - name: assetfinder - description: Example running assetfinder on: cron: 0 * * * * * ``` @@ -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