diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e2ba43..7bc7334 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: release: name: Build GitHub Action runs-on: ubuntu-latest - container: node:16 + container: node:20 steps: - uses: actions/checkout@v3 - name: Install dependencies @@ -28,7 +28,7 @@ jobs: with: api_token: ${{ secrets.BRIGHTSEC_TOKEN }} name: GitHub discovery ${{ github.sha }} - project: ${{ vars.PROJECT_ID }} + project_id: ${{ vars.PROJECT_ID }} hostname: ${{ vars.HOSTNAME }} discovery_types: | [ "crawler" ] diff --git a/src/index.ts b/src/index.ts index 4459ef6..459f334 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,12 +30,14 @@ const hostsFilter = getArray('hosts_filter'); const excludedEntryPoints = getArray('exclude_entry_points'); const discoveryTypesIn = getArray('discovery_types'); const hostname = core.getInput('hostname'); -const subdomainsCrawl = core.getBooleanInput('sub_domains_crawl') || false; +const subdomainsCrawl = + (core.getInput('sub_domains_crawl') || 'false').toLowerCase() === 'true'; const maxInteractionsChainLength = parseInt( core.getInput('interactions_depth'), 3 ); -const optimizedCrawler = core.getBooleanInput('smart') || true; +const optimizedCrawler = + (core.getInput('smart') || 'false').toLowerCase() === 'true'; const repeaters = getArray('repeaters'); const baseUrl = hostname ? `https://${hostname}` : 'https://app.brightsec.com';