From 8b246a5aca678a198e62d79eb19b57146e8b3641 Mon Sep 17 00:00:00 2001 From: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:20:53 -0300 Subject: [PATCH] Require user permissions check to run jobs --- .changeset/clean-suits-itch.md | 2 ++ .github/workflows/ci.yml | 9 +++------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 .changeset/clean-suits-itch.md diff --git a/.changeset/clean-suits-itch.md b/.changeset/clean-suits-itch.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/clean-suits-itch.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a150d15498..66a97afbb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,12 +1,6 @@ name: CI on: - workflow_dispatch: - inputs: - run_integration_tests: - description: 'Run integration tests' - type: boolean - default: false merge_group: pull_request: branches: @@ -39,6 +33,7 @@ jobs: exit 1 formatting-linting: + needs: [check-permissions] name: Formatting, linting & changeset checks runs-on: 'blacksmith-8vcpu-ubuntu-2204' timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }} @@ -105,6 +100,7 @@ jobs: retention-days: 5 unit-tests: + needs: [check-permissions] name: Unit Tests runs-on: 'blacksmith-8vcpu-ubuntu-2204' timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }} @@ -156,6 +152,7 @@ jobs: retention-days: 5 integration-tests: + needs: [check-permissions] name: Integration Tests runs-on: 'blacksmith-8vcpu-ubuntu-2204' timeout-minutes: ${{ vars.TIMEOUT_MINUTES_LONG && fromJSON(vars.TIMEOUT_MINUTES_LONG) || 15 }}