Skip to content

Commit

Permalink
codeql.yml - fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ptahmose committed Mar 22, 2024
1 parent b0337c4 commit b2cc311
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# For most projects, this workflow file will not need changing; you simply need
---
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
Expand All @@ -19,9 +20,6 @@ on:
schedule:
- cron: '15 6 * * 5'

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand All @@ -43,27 +41,27 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['c-cpp']
language: [ 'c-cpp' ]

Check failure on line 44 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

44:20 [brackets] too many spaces inside brackets

Check failure on line 44 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

44:28 [brackets] too many spaces inside brackets
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout repository

Check failure on line 51 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

51:5 [indentation] wrong indentation: expected 6 but found 4
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{matrix.language}}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{matrix.language}}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
Expand All @@ -78,10 +76,11 @@ jobs:
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

- run: |
echo "Run, Build Application using script"
source ./scripts/codeql-build.sh ${{github.workspace}}/build
echo "Run, Build Application using script"
source ./scripts/codeql-build.sh ${{github.workspace}}/build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

Check failure on line 86 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / MegaLinter

86:1 [empty-lines] too many blank lines (1 > 0)

0 comments on commit b2cc311

Please sign in to comment.