Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Test) #7499 Fix code QL scan #7500

Merged
merged 2 commits into from
Mar 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/codeql-v4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@
name: "CodeQL Analysis v4"

on:
#push:
# branches: [main, egeria-release-4*]
#pull_request:
# # The branches below must be a subset of the branches above
# branches: [main, egeria-release-4*]
push:
branches: [main, egeria-release-4*]
pull_request:
# The branches below must be a subset of the branches above
branches: [main, egeria-release-4*]
workflow_dispatch:

env:
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"interpret-results":["--max-paths",0]}}'

jobs:
analyze:
if: ${{ github.repository == 'odpi/egeria'}}
Expand All @@ -45,6 +42,7 @@ jobs:
with:
languages: java
queries: security-and-quality
ram: 4096
- name: Build
uses: gradle/gradle-build-action@v2
with:
Expand All @@ -54,3 +52,5 @@ jobs:
arguments: -x javadoc -x test build -PskipOpenTypesFVT
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
ram: 4096
56 changes: 56 additions & 0 deletions codeql-v4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the ODPi Egeria project.
#
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
---
name: "CodeQL Analysis v4"

on:
#push:
# branches: [main, egeria-release-4*]
#pull_request:
# # The branches below must be a subset of the branches above
# branches: [main, egeria-release-4*]
workflow_dispatch:

env:
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"interpret-results":["--max-paths",0]}}'

jobs:
analyze:
if: ${{ github.repository == 'odpi/egeria'}}
name: "CodeQL Build v4"
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- name: Setup Java 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
queries: security-and-quality
- name: Build
uses: gradle/gradle-build-action@v2
with:
# codeQL requires a full before/after build to compare results. Caching can result in action failing
#cache-read-only: true
cache-disabled: true
arguments: -x javadoc -x test build -PskipOpenTypesFVT
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2