diff --git a/.github/workflows/codacy-security-scan.yml b/.github/workflows/codacy-security-scan.yml new file mode 100644 index 0000000..555ea03 --- /dev/null +++ b/.github/workflows/codacy-security-scan.yml @@ -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/codacy-analysis-cli-action@1.0.0 + 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 diff --git a/Cenas.scala b/Cenas.scala new file mode 100644 index 0000000..5b8763c --- /dev/null +++ b/Cenas.scala @@ -0,0 +1,3 @@ +object Cenas { + val digestInstance = MessageDigest.getInstance("MD5"); +}