Bump actions/setup-java in /.github/actions/run-gradle #2085
Workflow file for this run
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: Codacy | |
permissions: read-all | |
on: [ push, pull_request ] | |
jobs: | |
security-scan: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
disable-sudo: true | |
egress-policy: block | |
allowed-endpoints: > | |
api.codacy.com:443 | |
api.github.com:443 | |
auth.docker.io:443 | |
github.com:443 | |
golang.org:443 | |
objects.githubusercontent.com:443 | |
production.cloudflare.docker.com:443 | |
raw.githubusercontent.com:443 | |
registry-1.docker.io:443 | |
*.blob.core.windows.net:443 | |
- name: Checkout code | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Run Codacy Analysis | |
uses: codacy/codacy-analysis-cli-action@master | |
continue-on-error: true | |
with: | |
format: sarif | |
output: results.sarif | |
gh-code-scanning-compat: true | |
max-allowed-issues: 2147483647 | |
- name: Check file existence | |
id: check_files | |
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2.0.0 | |
with: | |
files: results.sarif | |
- name: Upload result to GitHub Code Scanning | |
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4 | |
if: steps.check_files.outputs.files_exists == 'true' | |
with: | |
sarif_file: results.sarif |