From b2d4ef5ed8272f09b26d669c1e8279501b410bea Mon Sep 17 00:00:00 2001 From: leesam Date: Wed, 4 Feb 2026 20:51:14 +0900 Subject: [PATCH] Update CodeQL workflow for Actions analysis --- .github/workflows/codeql.yml | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..838cb94 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,61 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it to your repository. +# +# You may wish to alter this file to override the set of languages analyzed, +# or to provide custom queries or build logic. +# +# ******** NOTE ******** +# We have attempted to detect the languages in your repository. Please check +# the `language` matrix defined below to confirm you have the correct set of +# supported CodeQL languages. +# +name: "Check Actions" + +on: + push: + branches: [ "main" ] + paths: + - '.github/**/*.yml' + - '.github/**/*.yaml' + pull_request: + branches: [ "main" ] + paths: + - '.github/**/*.yml' + - '.github/**/*.yaml' + +jobs: + analyze-actions: + name: Analyze Actions + runs-on: ubuntu-latest + permissions: + # required for all workflows + security-events: write + + # required to fetch internal or private CodeQL packs + packages: read + + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: actions + build-mode: none + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:actions"