From 066140ba987dd3e317e5452e29441161e720547a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Przyw=C3=B3ski?= <35424311+marcin-przywoski@users.noreply.github.com> Date: Mon, 19 Feb 2024 11:18:10 +0100 Subject: [PATCH] Updated CodeQL and CD workflow * Updated CodeQL workflow * Updated CD workflow to create the release notes automatically --- .github/workflows/CD.yml | 1 + .github/workflows/codeql.yml | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 223a3b4..3ff4aae 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -125,6 +125,7 @@ jobs: --repo "${{ github.event.repository.full_name }}" --title "${{ github.ref_name }}" --verify-tag + --generate-notes diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1c2209b..c8521cd 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -12,10 +12,6 @@ name: "CodeQL" on: - workflow_run: - workflows: [ "CI" ] - types: completed - branches: [ "feature/**"] pull_request: # The branches below must be a subset of the branches above branches: [ "master", "develop" ] @@ -23,7 +19,6 @@ on: - '**.cs' schedule: - cron: '36 21 * * 0' - jobs: analyze: @@ -48,7 +43,6 @@ jobs: # Use only 'java' to analyze code written in Java, Kotlin or both # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support - if: github.event_name != 'pull_request' steps: - name: Checkout repository @@ -65,14 +59,12 @@ jobs: # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs # queries: security-extended,security-and-quality - if: github.event_name != 'pull_request' # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v2 - if: github.event_name != 'pull_request' # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -88,4 +80,3 @@ jobs: uses: github/codeql-action/analyze@v2 with: category: "/language:${{matrix.language}}" - if: github.event_name != 'pull_request'