diff --git a/.github/workflows/codeql-analysis-noop.yml b/.github/workflows/codeql-analysis-noop.yml new file mode 100644 index 0000000000..6e36f4fdbb --- /dev/null +++ b/.github/workflows/codeql-analysis-noop.yml @@ -0,0 +1,36 @@ +# 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 ******** +# This workflow implements the CodeQL / Analyze job as a no-op for docs and +# coniguration updates (.md and .yml files) in order to satisfy the required +# CodeQL / Analyze status check. +# See https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks +# for a reference on why this works. +# +name: "CodeQL" + +on: + push: + branches: [main, "*"] + paths: + - "**/*.yml" + - '**/*.md' + pull_request: + # The branches below must be a subset of the branches above + branches: [main] + paths: + - "**/*.yml" + - '**/*.md' + +permissions: read-all + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + steps: + - run: 'echo "No codeql required" ' diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b996462c4e..8309595c3e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -14,9 +14,17 @@ name: "CodeQL" on: push: branches: [main, "*"] + paths-ignore: + # If more paths are added here, then they must be added to the paths + # of codeql-analysis-noop.yml. + - "**/*.yml" + - '**/*.md' pull_request: # The branches below must be a subset of the branches above branches: [main] + paths-ignore: + - "**/*.yml" + - '**/*.md' schedule: - cron: "21 0 * * 2"