Skip to content
Merged
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions .github/workflows/codeql-self-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "CodeQL (self-scan)"

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '30 1 * * 0'

jobs:
analyze:
permissions:
actions: read
contents: read
security-events: write
uses: ./.github/workflows/codeql.yml
with:
languages: '["actions"]'
20 changes: 8 additions & 12 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
name: "CodeQL"

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '30 1 * * 0'
workflow_call:
inputs:
languages:
description: 'JSON array of CodeQL languages to analyze, e.g. ["actions","ruby"]'
required: true
type: string

jobs:
analyze:
Expand All @@ -22,9 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
language: ${{ fromJSON(inputs.languages) }}

steps:
- name: Checkout repository
Expand All @@ -36,7 +32,7 @@ jobs:
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
build-mode: none

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
Expand Down