-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update instructions to add more clarity * Initial import of exercise files * Initial devcontainer config for cmake * Updating container config * Completing exercises * Update main README * Create codeql.yml Adding advanced CodeQL scanning since autobuild fails for c++ projects * Update DemoController.java Fixing user-defined path vulnerability * Update DemoController.java Fix user-defined path * Update DemoResource.java Fix user-defined path vulnerability
- Loading branch information
1 parent
b2c4e00
commit 2d301ff
Showing
3 changed files
with
75 additions
and
0 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,57 @@ | ||
name: "CodeQL Advanced" | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
schedule: | ||
- cron: '26 17 * * 6' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze (${{ matrix.language }}) | ||
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} | ||
permissions: | ||
security-events: write | ||
packages: read | ||
actions: read | ||
contents: read | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- language: c-cpp | ||
build-mode: manual | ||
- language: csharp | ||
build-mode: none | ||
- language: java-kotlin | ||
build-mode: none | ||
- language: javascript-typescript | ||
build-mode: none | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v3 | ||
with: | ||
languages: ${{ matrix.language }} | ||
build-mode: ${{ matrix.build-mode }} | ||
|
||
# this is necessary because autobuild does not work | ||
- if: matrix.language == 'c-cpp' | ||
shell: bash | ||
run: | | ||
cd exercisefiles/c++ | ||
cmake -S . -B build | ||
cmake --build build | ||
cd ../../completesolution/c++ | ||
cmake -S . -B build | ||
cmake --build build | ||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v3 | ||
with: | ||
category: "/language:${{matrix.language}}" |
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