Skip to content

Commit

Permalink
test: ✅ Fix Codacy config
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-s-betke committed Apr 7, 2021
1 parent cf742d5 commit 2848fb8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: "CodeQL config"

paths-ignore:
- install
- tmp
- output
18 changes: 12 additions & 6 deletions .github/workflows/codacy-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# https://github.com/github/codeql-action

name: Codacy Security Scan

on: [push, pull_request]
Expand All @@ -7,21 +9,25 @@ jobs:
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Checkout repository
uses: actions/checkout@v2

# - name: Initialize CodeQL
# uses: github/codeql-action/init@v1
# with:
# config-file: ./.github/codeql/codeql-config.yml
#
# - name: Perform CodeQL Analysis
# uses: github/codeql-action/analyze@v1

- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@master
with:
output: results.sarif
format: sarif
# Adjust severity of non-security issues
gh-code-scanning-compat: true
# Force 0 exit code to allow SARIF file generation
# This will handover control about PR rejection to the GitHub side
max-allowed-issues: 2147483647

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@main
with:
Expand Down

0 comments on commit 2848fb8

Please sign in to comment.