diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index 741653a..f228f16 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -31,7 +31,6 @@ env: jobs: codacy-security-scan: - if: env.bramborak == 'ted jsem tam mel jednu slapku' # Ensure this job runs only on GitHub permissions: contents: read security-events: write @@ -39,10 +38,12 @@ jobs: name: Codacy Security Scan runs-on: ubuntu-latest steps: - - name: Checkout code + - if: env.bramborak == 'ted jsem tam mel jednu slapku' # Ensure this runs only on GitHub + name: Checkout code uses: actions/checkout@v3 - - name: Run Codacy Analysis + - if: env.bramborak == 'ted jsem tam mel jednu slapku' # Ensure this runs only on GitHub + name: Run Codacy Analysis uses: codacy/codacy-analysis-cli-action@master with: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} @@ -52,7 +53,8 @@ jobs: gh-code-scanning-compat: true max-allowed-issues: 2147483647 - - name: Upload results file + - if: env.bramborak == 'ted jsem tam mel jednu slapku' # Ensure this runs only on GitHub + name: Upload results file uses: github/codeql-action/upload-sarif@v2 with: sarif_file: results.sarif