-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(githubaction): adapt for use as a github action (#65)
Uses the existing docker container The 'scan-url' GitHub workflow argument is explicitly mapped to the SCAN_URL environment variable already expected&handled by the docker container. This enables the Dockerfile to remain agnostic to the fact that it is running as a Github action, rather than depending on the 'INPUT_' GitHub Action variable naming.
- Loading branch information
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: 'Is Website vulnerable' | ||
description: 'Scans a url for public javascript library vulnerabilities' | ||
inputs: | ||
scan-url: | ||
description: 'Website url to scan' | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
env: | ||
SCAN_URL: ${{ inputs.scan-url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters