This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
Merge pull request #9 from tweag/new_lock_file #5
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
name: "Endor Labs: Example Scan of JavaScript" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
schedule: | |
- cron: '34 3 * * 0' | |
jobs: | |
create_project_javascript: | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # Required by actions/checkout@v4 to checkout a private repository | |
actions: read | |
repository-projects: read | |
pull-requests: read | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout Repository' | |
uses: actions/checkout@v4 | |
- name: 'Use Node.js' | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- run: npm ci | |
working-directory: ./part2/VulnerableAppTwo | |
- run: npm run build --if-present | |
working-directory: ./part2/VulnerableAppTwo | |
- name: 'Scan JS with Endor Labs' | |
uses: endorlabs/github-action@main # This workflow uses the Endor Labs GitHub action to scan. | |
with: | |
namespace: 'bsideslv_demo.endor_labs_ref_arch' | |
pr: false | |
scan_secrets: true | |
scan_dependencies: true | |
log_verbose: true | |
scan_summary_output_type: 'table' | |
sarif_file: 'findings.sarif' | |
- name: 'Upload findings to GitHub' | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: 'findings.sarif' |