Skip to content

Commit

Permalink
add codacy static analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed May 8, 2022
1 parent 47fa7a9 commit d947255
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 306 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Codacy
permissions: read-all
on: [ push, pull_request ]

jobs:
security-scan:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@main
- 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: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
continue-on-error: true
with:
sarif_file: results.sarif
7 changes: 5 additions & 2 deletions .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: dependency-check
on: [ push, pull_request ]
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 4'
permissions: read-all

env:
Expand All @@ -20,7 +24,6 @@ jobs:
cache: 'gradle'
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
- uses: gradle/gradle-build-action@v2
- name: Run dependency-check
uses: gradle/gradle-build-action@v2
continue-on-error: true
Expand Down
304 changes: 0 additions & 304 deletions gradle/gradle-completion.bash

This file was deleted.

0 comments on commit d947255

Please sign in to comment.