diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 00000000..e9cd4968 --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,28 @@ +name: Github-CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm install + + - name: Download Scantist-Bom-Detect + run: curl -s https://scripts.scantist.com/scantist-bom-detect.jar --output scantist-bom-detect.jar + + - name: Upload to Scantist + env: # Setting the Token + SCANTISTTOKEN: "870dc660-a878-45a9-90ac-e5c0063ca554" + SCANTIST_IMPORT_URL : "https://api.scantist.io/ci-scan/" + run: java -jar scantist-bom-detect.jar -checkcompliance