-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: move CodeQL tests to default.yaml
Github CodeQL is complaining that it can't find the configuration for the codeql tests. There is no documented reason for this, but there is also no documented way to change this setting. Move CodeQL workflows back to default.yaml to make Github happy again
- Loading branch information
Showing
2 changed files
with
45 additions
and
28 deletions.
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,45 @@ | ||
# CodeQL tests apparently have to be deefined in a file | ||
# named default.yaml - this is not well documented | ||
|
||
name: CodeQL tests | ||
|
||
on: | ||
push: | ||
# test commits on this branch and staged commits | ||
branches: [ "master", "auto" ] | ||
|
||
pull_request: | ||
# test PRs targeting this branch code | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
|
||
CodeQL-tests: | ||
|
||
runs-on: [ ubuntu-22.04 ] | ||
|
||
permissions: | ||
security-events: write | ||
|
||
steps: | ||
|
||
- name: Install Squid prerequisite Linux packages | ||
run: | | ||
# required for "apt-get build-dep" to work | ||
sudo sed --in-place -E 's/# (deb-src.*updates main)/ \1/g' /etc/apt/sources.list | ||
sudo apt-get --quiet=2 update | ||
sudo apt-get --quiet=2 build-dep squid | ||
sudo apt-get --quiet=2 install linuxdoc-tools libtool-bin | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
|
||
- name: Build Squid | ||
run: ./test-builds.sh ./test-suite/buildtests/layer-02-maximus.opts | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
|
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