Skip to content

Commit

Permalink
feat: create github action to wait for discovery to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkor committed Dec 18, 2024
1 parent aff46b1 commit 4e9bde8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
cp README.md release/
cp action.yml release/
cp -R dist/ release/dist/
- name: Start Bright Scan 🏁
id: scan
- name: Start Bright Discovery 🏁
id: discovery
uses: NeuraLegion/run-discovery@release
with:
api_token: ${{ secrets.BRIGHTSEC_TOKEN }}
Expand All @@ -42,7 +42,8 @@ jobs:
continue-on-error: true
with:
api_token: ${{ secrets.BRIGHTSEC_TOKEN }}
discovery_id: ${{ steps.scan.outputs.id }}
discovery_id: ${{ steps.discovery.outputs.id }}
project_id: ${{ vars.PROJECT_ID }}
hostname: ${{ vars.HOSTNAME }}
timeout: 300 # in general cases we'll have a timeout and it is good for this test

1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Discovery, getStatus, stopDiscovery } from './discovery';
import * as core from '@actions/core';
import axios from 'axios';
import axiosRetry from 'axios-retry';
import { pathToFileURL } from 'url';

const token = core.getInput('api_token', { required: true });
const discoveryId = core.getInput('discovery_id', { required: true });
Expand Down

0 comments on commit 4e9bde8

Please sign in to comment.