Update docker compose file #31
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow checks out code, performs a Codacy security scan | |
| # and integrates the results with the | |
| # 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-action. | |
| # For more information on Codacy Analysis CLI in general, see | |
| # https://github.com/codacy/codacy-analysis-cli. | |
| name: Codacy Security Scan | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ "main", "develop" ] | |
| pull_request: | |
| # The branches below must be a subset of the branches above | |
| branches: [ "main" ] | |
| # schedule: | |
| # - cron: '24 23 * * 0' | |
| permissions: | |
| contents: read | |
| jobs: | |
| codacy-security-scan: | |
| permissions: | |
| contents: read # for actions/checkout to fetch code | |
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | |
| name: Codacy Security Scan | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - codacy_tool: pylint | |
| - codacy_tool: semgrep | |
| - codacy_tool: trivy | |
| steps: | |
| # Checkout the repository to the GitHub Actions runner | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis | |
| - name: Run Codacy Analysis CLI | |
| env: | |
| TOOL: ${{matrix.codacy_tool}} | |
| FORMAT: sarif | |
| run: | | |
| echo "::group::Analyze with tool ${TOOL}" | |
| .codacy/cli.sh analyze --tool ${TOOL} --format ${FORMAT} --output ${TOOL}.sarif | |
| echo "::endgroup::" | |
| echo "::group::Fix sarif file" | |
| echo "Fix: instance.runs[0].tool.driver.rules is not of a type(s) array" | |
| sed -i 's/"rules": null/"rules": []/g' ${TOOL}.sarif | |
| echo "::endgroup::" | |
| echo "::group::Display results" | |
| ls -la | |
| cat ${TOOL}.sarif | |
| echo "::endgroup::" | |
| # Upload the SARIF file generated in the previous step | |
| - name: Upload SARIF results file | |
| uses: github/codeql-action/upload-sarif@v3 | |
| with: | |
| sarif_file: ${{matrix.codacy_tool}}.sarif | |
| category: ${{matrix.codacy_tool}} |