Skip to content

Commit

Permalink
chore: change CodeQL workflow to run periodically
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jul 30, 2024
1 parent 22c48ef commit dba1f81
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,37 +29,13 @@
name: codeql

on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- '**.adoc'
- '**.md'
- 'macos-arm64.env'
- 'macos-x86_64.env'
- '.cirrus.yml'
- '.github/workflows/*.yml'
- '!.github/workflows/codeql.yml'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths-ignore:
- 'docs/**'
- '**.adoc'
- '**.md'
- 'macos-arm64.env'
- 'macos-x86_64.env'
- '.cirrus.yml'
- '.github/workflows/*.yml'
- '!.github/workflows/codeql.yml'
schedule:
- cron: "0 3 * * 0"

concurrency:
group: '${{ github.workflow }}-${{ github.job }}-${{ github.head_ref || github.ref_name }}'
cancel-in-progress: true

env:
CACHE_VER: 5

jobs:
analyze:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -102,12 +78,6 @@ jobs:
- name: Create deps folder
run: mkdir ${{github.workspace}}/${{env.DEPS}}

- name: Process cache
uses: actions/cache@v4
with:
path: ${{github.workspace}}/${{env.DEPS}}
key: CodeQL-${{ hashFiles('**/common.env') }}-v${{ env.CACHE_VER }}

- name: Install packages
run: |
sudo apt-get -y update
Expand Down

0 comments on commit dba1f81

Please sign in to comment.