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 dc5b4b1 commit abb6585
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
name: "MurphySec code scan"
description: "Software Supply Chain Security Scanning Tool"
author: "Wei Zhao <[email protected]>"
steps:
- name: Checkout_Actions
uses: actions/checkout@v3
- name: Install MurphySec code scan cli
run: |
wget -q https://s.murphysec.com/release/install.sh -O - | /bin/bash
- name: Code scan
run: murphysec scan . --token ${{ secrets.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
runs:
using: "composite"
steps:
- run: |
wget -q https://s.murphysec.com/release/install.sh -O - | /bin/bash
shell: bash
- run: murphysec scan . --token ${{ secrets.MURPHYSEC_TOKEN }} --json >scan_results.json
- run: |
wget https://s.murphysec.com/github_actions_format.py
python3 github_actions_format.py
shell: bash
- run: |
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:
Expand Down

0 comments on commit abb6585

Please sign in to comment.