Skip to content

[FE][SECURITY] Veracode #317

[FE][SECURITY] Veracode

[FE][SECURITY] Veracode #317

# Copyright (c) 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License, Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: "[FE][SECURITY] Veracode"
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'frontend/**'
schedule:
# Once a day 1 am
- cron: "0 1 * * *"
env:
JAVA_VERSION: 17
jobs:
analyze-frontend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
repository: ''
- run: zip -r veracode-scan-target.zip ./
- name: Run Veracode Upload And Scan
uses: veracode/veracode-uploadandscan-action@0.2.6
with:
appname: "Traceability-Foss-Frontend"
createprofile: false
filepath: "./frontend/veracode-scan-target.zip"
vid: '${{ secrets.VERACODE_API_ID || secrets.ORG_VERACODE_API_ID }}'
vkey: '${{ secrets.VERACODE_API_KEY || secrets.ORG_VERACODE_API_KEY }}'