Skip to content

Commit

Permalink
Hello
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev committed Jan 11, 2022
1 parent 6159200 commit e631b19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/pyworkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,26 @@ jobs:
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner

- name: Checkout code
uses: actions/checkout@v2

# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
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@v1
with:
sarif_file: results.sarif
run:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -64,4 +58,4 @@ jobs:
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.xml
coverage-reports: ./coverage.xml
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build-system]
requires = ["setuptools>=40.8.0", "wheel"]

[tool.bandit]
skips = ["B101"]

Expand All @@ -18,6 +21,3 @@ testpaths = [
]
console_output_style = "progress"
addopts = "--maxfail=5"

[build-system]
requires = ["setuptools>=40.8.0", "wheel"]

0 comments on commit e631b19

Please sign in to comment.