Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Awei2020 authored Jul 18, 2023
1 parent 5bf5acf commit 88281e1
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,20 @@ name: "MurphySec code scan"
description: "Software Supply Chain Security Scanning Tool"
author: "Wei Zhao <[email protected]>"
runs:
- name: Checkout_Actions
uses: actions/checkout@v3
- name: Install MurphySec code scan cli
uses: actions/checkout@v3
run: |
wget -q https://s.murphysec.com/release/install.sh -O - | /bin/bash
run: murphysec scan . --token $MURPHYSEC_TOKEN --json >scan_results.json
run: |
wget https://s.murphysec.com/github_actions_format.py
python3 github_actions_format.py
run: |
wget -q https://s.murphysec.com/release/install.sh -O - | /bin/bash
- name: Code scan
run: murphysec scan . --token $MURPHYSEC_TOKEN --json >scan_results.json
- name: Format data
run: |
wget https://s.murphysec.com/github_actions_format.py
python3 github_actions_format.py
- name: Check if file exists
run: |
if [ -f "results.sarif" ]; then
echo "file_exists=true" >> $GITHUB_ENV
else
echo "file_exists=false" >> $GITHUB_ENV
fi
- name: Upload SARIF file
if: env.file_exists == 'true'
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
if [ -f "results.sarif" ]; then
echo "file_exists=true" >> $GITHUB_ENV
else
echo "file_exists=false" >> $GITHUB_ENV
fi
if: env.file_exists == 'true'
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif

0 comments on commit 88281e1

Please sign in to comment.