Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 50 additions & 4 deletions .github/workflows/scb-bot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Fetch scanner's version API
uses: mikefarah/yq@v4.4.1
with:
cmd: echo versionApi=$(yq e .versionApi scanners/${{ matrix.scanner }}/Chart.yaml) >> $GITHUB_ENV
cmd: echo versionApi=$(yq e .annotations.versionApi scanners/${{ matrix.scanner }}/Chart.yaml) >> $GITHUB_ENV

- name: Fetch latest release scanner version
run: echo release=$((curl -sL ${{env.versionApi}} ) | jq -r ".tag_name") | tr -d "v" >> $GITHUB_ENV
Expand All @@ -60,13 +60,56 @@ jobs:
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
echo prExists=$(gh pr list --state open --limit 100 | grep -F "$pullRequestTitle" -c) >> $GITHUB_ENV

- name: Upgrade Scanner
- name: Fetch new release changelog
if: ${{ env.release != env.local }}
run: echo releaseChangelog=$((curl -sL ${{env.versionApi}} ) | jq -r ".body") >> $GITHUB_ENV

- name: Upgrade Scanner Helm Chart
if: ${{ env.release != env.local && env.prExists == 0 }}
uses: mikefarah/yq@v4.4.1
with:
# appVersion value in chart is replaced with release value. Empty lines are deleted in the process
cmd: yq e --inplace '.appVersion = "v${{env.release}}"' ./scanners/${{ matrix.scanner }}/Chart.yaml

# Updating Helm Docs
- name: Download Helm Docs
run: |
mkdir helm-docs
cd helm-docs

curl --output helm-docs.tar.gz --location https://github.com/norwoodj/helm-docs/releases/download/v1.5.0/helm-docs_1.5.0_Linux_x86_64.tar.gz
# Checksum must be extracted from the checksum file every time helm-docs gets updated.
echo "a352e13a8438045b8ed138b821cb757c177acd999c1af77345152d7a64b0ddb7 helm-docs.tar.gz" | shasum --check

tar -xvf helm-docs.tar.gz
# Verify installation
./helm-docs --version

sudo mv helm-docs /usr/local/bin/helm-docs

- name: Generate README
run: |
make readme
- name: Generate Demo-Apps Docs
run: make demo-apps-docs

- name: Generate Hooks Docs
run: make hook-docs

- name: Generate Scanner Docs
run: make scanner-docs

- name: Generate Operator Docs
run: make operator-docs

- name: Generate AutoDiscovery Docs
run: make auto-discovery-docs

- name: Remove Helm Docs Files
run: |
# Remove helm-docs download to ensure they don't get committed back
rm -rf helm-docs

- name: Create Pull Request
if: ${{ env.release != env.local && env.prExists == 0 }}
uses: peter-evans/create-pull-request@v3
Expand All @@ -78,6 +121,9 @@ jobs:
body: "This is an automated Pull Request by the SCB-Bot. It upgrades ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}"
branch: "dependencies/upgrading-${{ matrix.scanner }}-to-${{env.release}}"
labels: dependencies,scanner
commit-message: "Upgrading ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}"
commit-message: |
Upgrading ${{ matrix.scanner }} from ${{env.local}} to ${{env.release}}
## Release changes :
${{env.releaseChangelog}}
signoff: true
base: main
base: main
3 changes: 2 additions & 1 deletion scanners/amass/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ type: application
version: v3.1.0-alpha1
appVersion: "v3.14.3"
kubeVersion: ">=v1.11.0-0"
versionApi: https://api.github.com/repos/OWASP/Amass/releases/latest
annotations:
versionApi: https://api.github.com/repos/OWASP/Amass/releases/latest
keywords:
- security
- amass
Expand Down
3 changes: 2 additions & 1 deletion scanners/angularjs-csti-scanner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "3.0.6"
kubeVersion: ">=v1.11.0-0"

versionApi : https://api.github.com/repos/tijme/angularjs-csti-scanner/releases/latest
annotations:
versionApi : https://api.github.com/repos/tijme/angularjs-csti-scanner/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/cmseek/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "1.1.3"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/Tuhinshubhra/CMSeeK/releases/latest
annotations:
versionApi: https://api.github.com/repos/Tuhinshubhra/CMSeeK/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/gitleaks/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "v7.6.1"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/zricethezav/gitleaks/releases/latest
annotations:
versionApi: https://api.github.com/repos/zricethezav/gitleaks/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/kube-hunter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ type: application
version: v3.1.0-alpha1
appVersion: "0.6.3"
kubeVersion: ">=v1.11.0-0"
versionApi: https://api.github.com/repos/aquasecurity/kube-hunter/releases/latest
annotations:
versionApi: https://api.github.com/repos/aquasecurity/kube-hunter/releases/latest
keywords:
- security
- kube-hunter
Expand Down
3 changes: 2 additions & 1 deletion scanners/kubeaudit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ version: v3.1.0-alpha1
appVersion: "v0.14.2"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/Shopify/kubeaudit/releases/latest
annotations:
versionApi: https://api.github.com/repos/Shopify/kubeaudit/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/ncrack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "0.7"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/nmap/ncrack/releases/latest
annotations:
versionApi: https://api.github.com/repos/nmap/ncrack/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/nuclei/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "v2.5.2"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/projectdiscovery/nuclei/releases/latest
annotations:
versionApi: https://api.github.com/repos/projectdiscovery/nuclei/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/semgrep/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ version: "v3.1.0-alpha1"
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.71.0"
versionApi: https://api.github.com/repos/returntocorp/semgrep/releases/latest
annotations:
versionApi: https://api.github.com/repos/returntocorp/semgrep/releases/latest
kubeVersion: ">=v1.11.0-0"
home: https://docs.securecodebox.io/docs/scanners/semgrep
icon: https://docs.securecodebox.io/img/integrationIcons/semgrep.svg # TODO: Add this
Expand Down
3 changes: 2 additions & 1 deletion scanners/ssh-scan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "0.0.44"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/mozilla/ssh_scan/releases/latest
annotations:
versionApi: https://api.github.com/repos/mozilla/ssh_scan/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/sslyze/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ type: application
version: v3.1.0-alpha1
appVersion: "v4.1.0"
kubeVersion: ">=v1.11.0-0"
versionApi: https://api.github.com/repos/nabla-c0d3/sslyze/releases/latest
annotations:
versionApi: https://api.github.com/repos/nabla-c0d3/sslyze/releases/latest
keywords:
- security
- ssl
Expand Down
3 changes: 2 additions & 1 deletion scanners/trivy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ type: application
version: v3.1.0-alpha1
appVersion: "0.20.2"
kubeVersion: ">=v1.11.0-0"
versionApi: https://api.github.com/repos/aquasecurity/trivy/releases/latest
annotations:
versionApi: https://api.github.com/repos/aquasecurity/trivy/releases/latest
keywords:
- security
- trivy
Expand Down
3 changes: 2 additions & 1 deletion scanners/whatweb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "v0.5.5"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/urbanadventurer/WhatWeb/releases/latest
annotations:
versionApi: https://api.github.com/repos/urbanadventurer/WhatWeb/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/wpscan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ version: v3.1.0-alpha1
appVersion: "v3.8.19"
kubeVersion: ">=v1.11.0-0"

versionApi: https://api.github.com/repos/wpscanteam/wpscan/releases/latest
annotations:
versionApi: https://api.github.com/repos/wpscanteam/wpscan/releases/latest

keywords:
- security
Expand Down
3 changes: 2 additions & 1 deletion scanners/zap-advanced/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ type: application
version: v3.1.0-alpha1
appVersion: "2.11.0"
kubeVersion: ">=v1.11.0-0"
versionApi: https://api.github.com/repos/zaproxy/zaproxy/releases/latest
annotations:
versionApi: https://api.github.com/repos/zaproxy/zaproxy/releases/latest
keywords:
- security
- ZAP
Expand Down
3 changes: 2 additions & 1 deletion scanners/zap/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ type: application
version: v3.1.0-alpha1
appVersion: "2.11.0"
kubeVersion: ">=v1.11.0-0"
versionApi: https://api.github.com/repos/zaproxy/zaproxy/releases/latest
annotations:
versionApi: https://api.github.com/repos/zaproxy/zaproxy/releases/latest
keywords:
- security
- Zap
Expand Down