Skip to content

Commit

Permalink
Update sourcery.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Feb 28, 2025
1 parent ca1a64e commit 0a7c6a8
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/sourcery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@ jobs:
with:
python-version: '3.9'

- name: Install Sourcery
run: pip install sourcery-cli

- name: Login to Sourcery
env:
SOURCERY_TOKEN: ${{ code_analysis.SOURCERY_TOKEN }}
run: sourcery login --token $SOURCERY_TOKEN

- name: Run Sourcery Analysis
env:
SOURCERY_TOKEN: ${{ code_analysis.SOURCERY_TOKEN }}
run: |
sourcery review . --sarif --output results-sourcery.sarif
- name: Sourcery
uses: sourcery-ai/action@v1
with:
token: ${{ secrets.SOURCERY_TOKEN }}
create_review: true
analysis_timeout: 5m
output_format: sarif
output_file: results-sourcery.sarif

- name: Upload Sourcery results as artifact
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0a7c6a8

Please sign in to comment.