Skip to content

Commit

Permalink
ci: add setup-go GH action and codeQL analysis category (#401)
Browse files Browse the repository at this point in the history
**Reason for Change**:
<!-- What does this PR improve or fix in Kaito? Why is it needed? -->

**Requirements**

- [ ] added unit tests and e2e tests (if applicable).

**Issue Fixed**:
<!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next
line. -->

**Notes for Reviewers**:

Signed-off-by: Heba <31887807+helayoty@users.noreply.github.com>
  • Loading branch information
helayoty authored May 11, 2024
1 parent 25a2b10 commit cdcc7f5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
branches:
- main
schedule:
- cron: "0 7 * * 1" # Mondays at 7:00 AM
# Daily at 1:00
- cron: '0 1 * * *'

permissions:
contents: read
Expand All @@ -30,6 +31,10 @@ jobs:
with:
submodules: true
fetch-depth: 0

- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand All @@ -41,3 +46,5 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:go"

0 comments on commit cdcc7f5

Please sign in to comment.