Skip to content

Commit

Permalink
Run apt update first
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Feb 26, 2024
1 parent 91f7ac8 commit e748612
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: 'CodeQL'
name: "CodeQL"

on:
schedule:
- cron: '20 2 * * 0'
- cron: "20 2 * * 0"

jobs:
analyze:
Expand All @@ -16,13 +16,14 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ['cpp', 'javascript', 'python']
language: ["cpp", "javascript", "python"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- run: sudo apt-get -qq update
- name: Install dependencies
if: matrix.language == 'cpp'
run: |
Expand Down Expand Up @@ -73,7 +74,6 @@ jobs:
# 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.

# 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

Expand All @@ -85,4 +85,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'
category: "/language:${{matrix.language}}"

0 comments on commit e748612

Please sign in to comment.