Create readme.md #324
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
on: [push] | |
jobs: | |
synchronous-analysis-with-blocking-result: | |
permissions: | |
security-events: write # for uploading code scanning alert info | |
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
name: SOOS SCA Scan | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: actions/checkout@master | |
- name: Run SOOS - Scan for vulnerabilities | |
uses: soos-io/soos-sca-github-action@v2.3.0 #Get Latest Version from https://github.com/marketplace/actions/soos-core-sca | |
with: | |
project_name: "GitHub Actions - SCA" | |
client_id: ${{ secrets.QA_SOOS_CLIENT_ID }} | |
api_key: ${{ secrets.QA_SOOS_API_KEY }} | |
api_url: 'https://qa-api.soos.io/api/' | |
log_level: DEBUG | |
#package_managers: "php" | |
sca_version: 4.0.15-pre.2 | |
export_format: sarif | |
export_file_type: JSON | |
output_directory: output | |
# Cargar el directorio generado como artefacto | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: sca-analysis-output | |
path: | | |
${{ github.workspace }}/output/*.cdx.json | |
${{ github.workspace }}/output/*.cdx.xml | |
${{ github.workspace }}/output/*.spdx.json | |
${{ github.workspace }}/output/*.spdx.txt | |
${{ github.workspace }}/output/*.sarif.json | |
${{ github.workspace }}/output/*.csafvex.json | |
${{ github.workspace }}/output/*.sooslicenses.html | |
${{ github.workspace }}/output/*.sooslicenses.csv | |
${{ github.workspace }}/output/*.soospackages.html | |
${{ github.workspace }}/output/*.soospackages.csv | |
${{ github.workspace }}/output/*.soosvulnerabilities.html | |
${{ github.workspace }}/output/*.soosvulnerabilities.csv | |
${{ github.workspace }}/output/*.soosissues.html | |
${{ github.workspace }}/output/*.soosissues.csv | |
- name: Get SARIF file | |
id: get-sarif | |
run: | | |
FILE=$(ls ${{ github.workspace }}/output/*.sarif.json | head -n 1) | |
echo "sarif_file=$FILE" >> $GITHUB_ENV | |
# - name: Upload SOOS SARIF Report | |
# uses: github/codeql-action/upload-sarif@v3 | |
# with: | |
# sarif_file: ${{ env.sarif_file }} |