Skip to content

Commit

Permalink
Create codeql.yml (notaryproject#9)
Browse files Browse the repository at this point in the history
Signed-off-by: Lixia (Sylvia) Lei <lixia_lei@outlook.com>
  • Loading branch information
Wwwsylvia authored and jondonas committed Jun 27, 2022
1 parent 08d2ba3 commit af462bd
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "CodeQL"

on:
push:
branches: main
pull_request:
branches: main
schedule:
- cron: '38 15 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
matrix:
go-version: [1.17, 1.18]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go ${{ matrix.go-version }} environment
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit af462bd

Please sign in to comment.