Skip to content

Commit

Permalink
Updated CodeQL to use latest version (#281)
Browse files Browse the repository at this point in the history
* Created CodeQL config

* Updated CodeQL to latest version

* Truncated whitespaces
  • Loading branch information
srkgupta committed Nov 10, 2022
1 parent 12464e0 commit 8e89862
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .github/codeql/codeql-config.yml
@@ -0,0 +1,13 @@
name: "CodeQL config"

query-filters:
- exclude:
problem.severity:
- warning
- recommendation
- exclude:
id: go/log-injection

paths-ignore:
- '**/*_test.go'
- '**/*.test.*'
25 changes: 14 additions & 11 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -8,15 +8,16 @@ on:
branches: [ master ]
schedule:
- cron: '30 0 * * 0'

permissions:
contents: read

jobs:
analyze:
permissions:
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
Expand All @@ -25,18 +26,20 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
debug: false
config-file: ./.github/codeql/codeql-config.yml

# Autobuild attempts to build any compiled languages
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

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

0 comments on commit 8e89862

Please sign in to comment.