Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/codacy-security-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# This workflow checks out code, performs a Codacy security scan
# and integrates the results with
# GitHub Advanced Security code scanning feature. For more information on
# the Codacy security scan action usage and parameters, see
# https://github.com/codacy/codacy-analysis-cli/tree/master#github-action.
# For more information on Codacy analysis cli in general, see
# https://github.com/codacy/codacy-analysis-cli.

name: Codacy Security Scan

on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]

jobs:
codacy-security-scan:
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/[email protected]
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also ommit the token and run with the tools that support default configurations
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
output: results.sarif
format: sarif
# Force 0 exit code to allow sarif file generation
# This will pass control about PR rejection to 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
3 changes: 3 additions & 0 deletions Cenas.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
object Cenas {
val digestInstance = MessageDigest.getInstance("MD5");
}