From f9fcce5cac46c91aac33fe7ef09daac01a0e83a9 Mon Sep 17 00:00:00 2001 From: Younes Aassila <47226184+younesaassila@users.noreply.github.com> Date: Fri, 7 Feb 2025 14:30:41 +0100 Subject: [PATCH] Update workflows --- .github/workflows/build.yml | 2 ++ .github/workflows/codeql.yml | 2 ++ .github/workflows/dependency-review.yml | 8 +++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2ae23db..7e56033 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,13 @@ on: tags-ignore: ["**"] pull_request: branches: ["**"] + types: [opened, synchronize, reopened, ready_for_review] jobs: build: name: Build runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} concurrency: build-${{ github.ref }} steps: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index d55392c..e67c855 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -18,6 +18,7 @@ on: pull_request: # The branches below must be a subset of the branches above branches: ["v2"] + types: [opened, synchronize, reopened, ready_for_review] schedule: - cron: "32 9 * * 6" @@ -25,6 +26,7 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} concurrency: codeql-${{ github.ref }} permissions: actions: read diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 9eab75d..890bb91 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -5,14 +5,20 @@ # Source repository: https://github.com/actions/dependency-review-action # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement name: "Dependency Review" -on: [pull_request] +on: + pull_request: + branches: ["**"] + types: [opened, synchronize, reopened, ready_for_review] permissions: contents: read jobs: dependency-review: + name: Dependency Review runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} + concurrency: dependencies-${{ github.ref }} steps: - name: "Checkout Repository" uses: actions/checkout@v4