Skip to content

Changing environment name #2

Changing environment name

Changing environment name #2

Workflow file for this run

name: Sourcery Code Quality
on: [push, pull_request]
permissions:
contents: read
security-events: write
jobs:
sourcery:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Sourcery
run: pip install sourcery-cli
- name: Login to Sourcery
env:
SOURCERY_TOKEN: ${{ code_analysis.SOURCERY_TOKEN }}

Check failure on line 26 in .github/workflows/sourcery.yml

View workflow run for this annotation

GitHub Actions / Sourcery Code Quality

Invalid workflow file

The workflow is not valid. .github/workflows/sourcery.yml (Line: 26, Col: 27): Unrecognized named-value: 'code_analysis'. Located at position 1 within expression: code_analysis.SOURCERY_TOKEN .github/workflows/sourcery.yml (Line: 31, Col: 27): Unrecognized named-value: 'code_analysis'. Located at position 1 within expression: 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: Upload Sourcery results as artifact
uses: actions/upload-artifact@v4
with:
name: sourcery-results
path: results-sourcery.sarif
retention-days: 5
- name: Upload SARIF to GitHub
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results-sourcery.sarif
category: sourcery