Skip to content

Commit 059a245

Browse files
committed
Updating CodeQL workflow and adding a badge
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
1 parent 174296c commit 059a245

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,21 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
language: [ 'go' ]
19+
language:
20+
- language: go
21+
build-mode: autobuild
2022

2123
steps:
2224
- name: Checkout repository
23-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2426

2527
# Initializes the CodeQL tools for scanning.
2628
- name: Initialize CodeQL
27-
uses: github/codeql-action/init@v2
29+
uses: github/codeql-action/init@v3
2830
with:
2931
languages: ${{ matrix.language }}
3032

31-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
32-
# If this step fails, then you should remove it and run the build manually (see below)
33-
- name: Autobuild
34-
uses: github/codeql-action/autobuild@v2
35-
3633
- name: Perform CodeQL Analysis
37-
uses: github/codeql-action/analyze@v2
34+
uses: github/codeql-action/analyze@v3
3835
with:
3936
category: "/language:${{matrix.language}}"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# lib-common
2+
[![CodeQL](https://github.com/openstack-k8s-operators/lib-common/actions/workflows/codeql.yml/badge.svg)](https://github.com/openstack-k8s-operators/lib-common/actions/workflows/codeql.yml)
23

34
Common library for OpenStack K8s Operators.
45

0 commit comments

Comments
 (0)