Skip to content

Commit

Permalink
fix: test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkor committed Dec 16, 2024
1 parent 988ac17 commit db3a80e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" ]
Expand Down
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ const hostsFilter = getArray('hosts_filter');
const excludedEntryPoints = getArray<RequestExclusion>('exclude_entry_points');
const discoveryTypesIn = getArray<Discovery>('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';
Expand Down

0 comments on commit db3a80e

Please sign in to comment.