-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [CI] Add CodeQL workflow * Configure ARTIFACT_DIR env var * Enable tests * Remove redundant triggers * Use softprops/action-gh-release@v2 * Add dependabot.yml for GHA * Add write permissions for softprops/action-gh-release@v2
- Loading branch information
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: codeql | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
codeql: | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout [${{ github.repository }}] | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: c | ||
build-mode: manual | ||
|
||
- name: Build | ||
env: | ||
PREFIX: amd64-linux-gcc | ||
CC: gcc | ||
MAKE: make | ||
ARTIFACT_DIR: .artifacts | ||
RUN_TESTS: true | ||
shell: bash | ||
run: ./scripts/ci-build.sh | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 |