Skip to content

Commit

Permalink
.github: update codeql-analysis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
x448 authored Oct 6, 2024
1 parent 861a2ae commit 91c8b3b
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Copied from https://github.com/fxamacker/cbor
name: "CodeQL"

# Remove default permissions
permissions: {}

on:
push:
branches: [ master ]
# Run on push for all branches.
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
# Run on pull request for all branches.
schedule:
- cron: '25 3 * * 3'
- cron: '30 12 * * *' # Run daily at 12:30 UTC / 7:30 AM Central.

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true

jobs:
analyze:
Expand All @@ -28,18 +32,20 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9
uses: github/codeql-action/init@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
with:
languages: ${{ matrix.language }}

# Don't need setup-go because default version of Go is updated regularly in ubuntu-latest.

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9
uses: github/codeql-action/autobuild@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9
uses: github/codeql-action/analyze@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11

0 comments on commit 91c8b3b

Please sign in to comment.