Go 1.18 is released. Go 1.16 is no longer supported by the Go team. golangci-lint is updated since 1.44.2 doesn't support Go 1.18. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
44 lines
903 B
YAML
44 lines
903 B
YAML
name: "CodeQL Scan"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- 'release/**'
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'release/**'
|
|
|
|
jobs:
|
|
CodeQL-Build:
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
|
|
|
|
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.18.0
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
# Override language selection by uncommenting this and choosing your languages
|
|
# with:
|
|
# languages: go, javascript, csharp, python, cpp, java
|
|
|
|
- run: |
|
|
sudo apt-get install -y libseccomp-dev libbtrfs-dev
|
|
make
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1
|