From db3a80e3c1305306999b4b3a13f24b40af64e3ad Mon Sep 17 00:00:00 2001 From: Bram Kortooms Date: Mon, 16 Dec 2024 14:09:21 +0200 Subject: [PATCH] fix: test workflow --- .github/workflows/test.yml | 4 ++-- src/index.ts | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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';