From: Viktor Szakats Date: Tue, 9 Sep 2025 14:57:19 +0000 (+0200) Subject: GHA/codeql: scan GHA workflows and Python X-Git-Tag: curl-8_16_0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c70f7b7a7cdf04067ef2b4be8cc2d92996bdd36d;p=thirdparty%2Fcurl.git GHA/codeql: scan GHA workflows and Python Closes #18504 --- diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000000..1d28c0a54a --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,61 @@ +# Copyright (C) Daniel Stenberg, , et al. +# +# SPDX-License-Identifier: curl + +name: 'CodeQL' + +'on': + push: + branches: + - master + - '*/ci' + paths-ignore: + - '**/*.md' + - '.circleci/**' + - 'appveyor.*' + - 'docs/**' + - 'packages/**' + - 'plan9/**' + - 'projects/**' + - 'tests/data/**' + - 'winbuild/**' + pull_request: + branches: + - master + paths-ignore: + - '**/*.md' + - '.circleci/**' + - 'appveyor.*' + - 'docs/**' + - 'packages/**' + - 'plan9/**' + - 'projects/**' + - 'tests/data/**' + - 'winbuild/**' + schedule: + - cron: '0 0 * * 4' + +concurrency: + group: ${{ github.workflow }} + +permissions: {} + +jobs: + codeql: + name: 'GHA and Python' + runs-on: ubuntu-latest + permissions: + security-events: write + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + persist-credentials: false + + - name: 'initialize' + uses: github/codeql-action/init@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3 + with: + languages: actions, python + queries: security-extended + + - name: 'perform analysis' + uses: github/codeql-action/analyze@aa578102511db1f4524ed59b8cc2bae4f6e88195 # v3