Skip to content

Commit

Permalink
setup codeQL workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 committed Apr 2, 2024
1 parent d974cd3 commit 450d9eb
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -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}}"
2 changes: 1 addition & 1 deletion site/layouts/docs/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h3>{{ .title }}</h3>
{{ range .subfolderitems }}
<li>
{{ if .github }}
<a href="{{ $gh }}{{ .url }}" target="_blank">{{ .page }}</a>
<a href="{{ $gh }}{{ .url }}" target="_blank" rel="noopener noreferrer">{{ .page }}</a>
{{ else }}
<a href="/docs/{{ $version }}{{ .url }}">{{ .page }}</a>
{{ end }}
Expand Down

0 comments on commit 450d9eb

Please sign in to comment.