From 059a2453afd7f365d0ce6624efd2a353c15dca35 Mon Sep 17 00:00:00 2001 From: Jiri Podivin Date: Tue, 10 Sep 2024 10:15:36 +0200 Subject: [PATCH] Updating CodeQL workflow and adding a badge Signed-off-by: Jiri Podivin --- .github/workflows/codeql.yml | 15 ++++++--------- README.md | 1 + 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d68a0ffe..9e62d9c9 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -16,24 +16,21 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'go' ] + language: + - language: go + build-mode: autobuild steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:${{matrix.language}}" diff --git a/README.md b/README.md index f95434c9..50dcde40 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # lib-common +[![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) Common library for OpenStack K8s Operators.