Skip to content

Commit

Permalink
Merge pull request #19 from recognizegroup/feature/TD-239_code_scanning
Browse files Browse the repository at this point in the history
TD-239 Add code scanning
  • Loading branch information
Bart Wesselink authored Apr 24, 2023
2 parents 7302db5 + 3035fa2 commit 5dd50aa
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/code-scanning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: "Code Scanning"

on:
push:
branches: [ develop, main, master, release/*, hotfix/* ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 9 * * 1'

jobs:
code-scanning-java:
name: Perform code scanning (Java) - Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup jdk
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: java
packs: codeql/java-queries

- name: Run preparation script
run: |-
export GRADLE_OPTS="-Xmx2048m"
npm ci
(cd android; ./gradlew --no-daemon --no-parallel assemble)
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

code-scanning-javascript:
name: Perform code scanning (JavaScript) - Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: javascript
packs: codeql/javascript-queries

# Autobuild the language if possible
- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 5dd50aa

Please sign in to comment.