Skip to content

Commit

Permalink
feat: update PTT CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
ViorelMocanu committed Jun 15, 2024
1 parent 90c7401 commit a003cf7
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/ptt-light-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
pr-id:
url:
type: string
description: PR ID
required: true
environment:
description: 'Environment to run tests against'
type: environment
description: The URL to scan
required: true

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand All @@ -40,24 +36,25 @@ jobs:
uses: pentesttoolscom/pentesttools-github-action@master
id: ptt
with:
target: ${{steps.deployment.outputs.page_url || 'https://resurse.dev'}}
target: ${{ steps.deployment.outputs.page_url || 'https://resurse.dev' }}
format: text
fail: low
fail: medium
- name: Check the light output
run: echo "The light report ${{ steps.ptt.outputs.result }}"
test_deep_scan:
test_deep_scan_manual:
runs-on: ubuntu-latest
name: Run a deep scan. You will need a suitable API key
if: github.event_name == 'manual'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Actual PTT deep test
uses: pentesttoolscom/pentesttools-github-action@master
id: ptt
with:
target: ${{ steps.deployment.outputs.page_url || 'https://resurse.dev' }}
target: ${{ inputs.url || 'https://resurse.dev' }}
format: text
fail: low
fail: medium
type: deep
key: ${{ secrets.PTT_API_KEY }}
- name: Check the deep output
Expand All @@ -73,8 +70,8 @@ jobs:
uses: pentesttoolscom/pentesttools-github-action@master
id: ptt
with:
target: ${{steps.deployment.outputs.page_url || 'https://resurse.dev'}}
target: ${{ inputs.url || 'https://resurse.dev' }}
format: text
fail: low
fail: medium
- name: Check the light output
run: echo "The light report ${{ steps.ptt.outputs.result }}"

0 comments on commit a003cf7

Please sign in to comment.