From 450d9eb430c2259e3083ecdae423c1676fa40aa2 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 2 Apr 2024 19:22:17 +0200 Subject: [PATCH] setup codeQL workflow Signed-off-by: Matthieu MOREL --- .github/workflows/codeql.yml | 38 ++++++++++++++++++++++++++++++++++++ site/layouts/docs/nav.html | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000000..bd5b8cd5656 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,38 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + # required for all workflows + security-events: write + + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + language: [go] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" diff --git a/site/layouts/docs/nav.html b/site/layouts/docs/nav.html index 13d26e6be81..1dae83431ee 100644 --- a/site/layouts/docs/nav.html +++ b/site/layouts/docs/nav.html @@ -16,7 +16,7 @@

{{ .title }}

{{ range .subfolderitems }}
  • {{ if .github }} - {{ .page }} + {{ .page }} {{ else }} {{ .page }} {{ end }}