Veracode SPFx CI CD #83
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
# Copyright (c) Laserfiche. | |
# Licensed under the MIT License. See LICENSE in the project root for license information. | |
name: Veracode SPFx CI CD | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
schedule: | |
- cron: '0 12 * * 6' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Build solution | |
run: gulp build | |
- name: 'create an empty ./veracode folder' | |
run: 'mkdir -p ./veracode' | |
- name: 'Compress SharePoint files' | |
run: tar -czvf ./veracode/sharepoint-integration.tar.gz ./lib | |
- name: Veracode Upload And Scan (Static Application Security Testing) | |
uses: veracode/veracode-uploadandscan-action@0.2.6 | |
with: | |
appname: 'SharePoint Integration' | |
createprofile: true | |
filepath: 'veracode' | |
vid: '${{ secrets.VERACODE_API_ID }}' | |
vkey: '${{ secrets.VERACODE_API_KEY }}' | |
- name: Run Veracode Software Composition Analysis (SCA) | |
env: | |
SRCCLR_API_TOKEN: ${{ secrets.SRCCLR_API_TOKEN }} | |
uses: veracode/veracode-sca@v2.1.6 | |
with: | |
create-issues: false | |
allow-dirty: true | |
recursive: true | |