Skip to content

Commit

Permalink
Update precaution.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Brown <ericwb@users.noreply.github.com>
  • Loading branch information
ericwb authored Mar 9, 2024
1 parent 553455b commit 825ef3b
Showing 1 changed file with 5 additions and 35 deletions.
40 changes: 5 additions & 35 deletions .github/workflows/precaution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,8 @@ on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read
steps:
- name: Checkout precli
uses: actions/checkout@v4
with:
repository: 'securesauce/precli'
ref: 'main'

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12

- name: Install dependencies
run: |
pip install .
rm -rf precli
- name: Checkout local repository
uses: actions/checkout@v4

- name: Run Precli
run: precli -r . --json -o results.sarif || true

- uses: github/codeql-action/upload-sarif@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: results.sarif
analyze:
name: Analyze
uses: securesauce/precli-actionv@0.1.0
with:
path: "."

0 comments on commit 825ef3b

Please sign in to comment.