ci: enable CodeQL Alerts following the OpenSSF Security Scorecards recommendation (#1421)

Ref #1298
This commit is contained in:
Yusuke Kuoka 2022-05-12 18:55:11 +09:00 committed by GitHub
parent e46b90f758
commit b98f470a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 26 additions and 0 deletions

26
.github/workflows/codeql.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: "Code Scanning"
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '30 1 * * 0'
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: Initialize CodeQL
uses: github/codeql-action/init@32c89b94fd7eb71067f3bf2afd2bfc85efa4a880
with:
languages: go
- name: Autobuild
uses: github/codeql-action/autobuild@32c89b94fd7eb71067f3bf2afd2bfc85efa4a880
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@32c89b94fd7eb71067f3bf2afd2bfc85efa4a880