Skip to content

k3s example

k3s example #23

Workflow file for this run

name: Code Analysis
on:
push:
branches: [ "master", "main" ]
pull_request:
branches: [ "master", "main" ]
jobs:
codeql-scan:
name: Codeql Security Scan
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@v1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
codacy-scan:
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Run Codacy Analysis CLI
uses: codacy/[email protected]
with:
output: results.sarif
format: sarif
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# Adjust severity of non-security issues
gh-code-scanning-compat: false
max-allowed-issues: 2147483647
upload: true