Code Quality #60
This file contains 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
name: "Code Quality" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
schedule: | |
- cron: "26 10 * * 3" | |
permissions: | |
contents: read | |
jobs: | |
codacy-security-scan: | |
name: Codacy Security Scan | |
runs-on: ubuntu-latest | |
if: ${{ false }} | |
permissions: | |
contents: read | |
security-events: write | |
actions: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Codacy Analysis CLI | |
uses: codacy/codacy-analysis-cli-action@v4.4.5 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
format: sarif | |
output: results.sarif | |
gh-code-scanning-compat: true | |
max-allowed-issues: 2147483647 | |
# Upload the SARIF file generated in the previous step | |
- name: Upload SARIF results file | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: results.sarif | |
github-security-scan: | |
name: Github Security Scan | |
runs-on: "ubuntu-latest" | |
if: ${{ false }} | |
timeout-minutes: 360 | |
permissions: | |
security-events: write | |
packages: read | |
actions: read | |
contents: read | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- language: java-kotlin | |
build-mode: autobuild | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: java-kotlin | |
build-mode: autobuild | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:java-kotlin" |