Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: CodeQL

on:
push:
branches:
- main
schedule:
- cron: '31 7 * * 3'
- cron: '31 7 * * *'
workflow_dispatch:
workflow_call:

permissions:
Expand All @@ -15,7 +13,24 @@ permissions:
security-events: write

jobs:
changes:
name: Check for new commits
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 5
permissions:
actions: read
outputs:
scan: ${{ steps.check.outputs.scan }}
steps:
# The nightly run skips the scan when main hasn't moved since the last
# successful run, so quiet repos don't rescan the same commit.
- name: Check for commits since the last scan
id: check
uses: mirurobotics/.github/actions/codeql-gate@d2aec010e6ce5c9dd65fb16e6d06a0f61e437734 # main
Comment thread
bens-agent marked this conversation as resolved.

codeql:
needs: changes
if: ${{ !cancelled() && needs.changes.outputs.scan != 'false' }}
runs-on: blacksmith-2vcpu-ubuntu-2404

steps:
Expand Down