From de72cf64445a5ac58fc9f58c8fe878566f51d74a Mon Sep 17 00:00:00 2001 From: Sebastien Flory Date: Thu, 28 Nov 2024 11:58:24 +0100 Subject: [PATCH] Add: ability to bypass the permission check from slack (#8985) * Add: ability to bypass the permission check from slack --- .github/workflows/deploy-connectors.yml | 10 ++++++++++ .github/workflows/deploy-core.yml | 10 ++++++++++ .github/workflows/deploy-front-edge.yml | 10 ++++++++++ .github/workflows/deploy-front.yml | 10 ++++++++++ .github/workflows/deploy-oauth.yml | 10 ++++++++++ .github/workflows/deploy-prodbox.yml | 10 ++++++++++ .github/workflows/deploy-viz.yml | 10 ++++++++++ connectors/package-lock.json | 2 +- 8 files changed, 71 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-connectors.yml b/.github/workflows/deploy-connectors.yml index 8791d9b4ba17f..6f6ae9fd087d1 100644 --- a/.github/workflows/deploy-connectors.yml +++ b/.github/workflows/deploy-connectors.yml @@ -2,6 +2,15 @@ name: Deploy Connectors on: workflow_dispatch: + inputs: + check_deployment_blocked: + description: "Check #deployment locks or force deploy" + required: true + default: "check" + type: choice + options: + - "check" + - "force (dangerous)" concurrency: group: deploy_connectors @@ -35,6 +44,7 @@ jobs: slack_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Slack Check Deployment Blocked + if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }} id: check_deployment_blocked uses: ./.github/actions/slack-check-deployment-blocked with: diff --git a/.github/workflows/deploy-core.yml b/.github/workflows/deploy-core.yml index b83de5d77abed..aeb530e5aa61f 100644 --- a/.github/workflows/deploy-core.yml +++ b/.github/workflows/deploy-core.yml @@ -2,6 +2,15 @@ name: Deploy Core on: workflow_dispatch: + inputs: + check_deployment_blocked: + description: "Check #deployment locks or force deploy" + required: true + default: "check" + type: choice + options: + - "check" + - "force (dangerous)" concurrency: group: deploy_core @@ -35,6 +44,7 @@ jobs: slack_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Slack Check Deployment Blocked + if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }} id: check_deployment_blocked uses: ./.github/actions/slack-check-deployment-blocked with: diff --git a/.github/workflows/deploy-front-edge.yml b/.github/workflows/deploy-front-edge.yml index a8ee6be196e65..3cb1e9f872649 100644 --- a/.github/workflows/deploy-front-edge.yml +++ b/.github/workflows/deploy-front-edge.yml @@ -2,6 +2,15 @@ name: Deploy Front Edge on: workflow_dispatch: + inputs: + check_deployment_blocked: + description: "Check #deployment locks or force deploy" + required: true + default: "check" + type: choice + options: + - "check" + - "force (dangerous)" concurrency: group: deploy_front_edge @@ -34,6 +43,7 @@ jobs: slack_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Slack Check Deployment Blocked + if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }} id: check_deployment_blocked uses: ./.github/actions/slack-check-deployment-blocked with: diff --git a/.github/workflows/deploy-front.yml b/.github/workflows/deploy-front.yml index 3b67eef492bc8..4346817615abe 100644 --- a/.github/workflows/deploy-front.yml +++ b/.github/workflows/deploy-front.yml @@ -2,6 +2,15 @@ name: Deploy Front on: workflow_dispatch: + inputs: + check_deployment_blocked: + description: "Check #deployment locks or force deploy" + required: true + default: "check" + type: choice + options: + - "check" + - "force (dangerous)" concurrency: group: deploy_front @@ -35,6 +44,7 @@ jobs: slack_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Slack Check Deployment Blocked + if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }} id: check_deployment_blocked uses: ./.github/actions/slack-check-deployment-blocked with: diff --git a/.github/workflows/deploy-oauth.yml b/.github/workflows/deploy-oauth.yml index 4191a8b581f04..5090c887e0fe1 100644 --- a/.github/workflows/deploy-oauth.yml +++ b/.github/workflows/deploy-oauth.yml @@ -2,6 +2,15 @@ name: Deploy Oauth on: workflow_dispatch: + inputs: + check_deployment_blocked: + description: "Check #deployment locks or force deploy" + required: true + default: "check" + type: choice + options: + - "check" + - "force (dangerous)" concurrency: group: deploy_oauth @@ -35,6 +44,7 @@ jobs: slack_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Slack Check Deployment Blocked + if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }} id: check_deployment_blocked uses: ./.github/actions/slack-check-deployment-blocked with: diff --git a/.github/workflows/deploy-prodbox.yml b/.github/workflows/deploy-prodbox.yml index 892aa30d21d40..cd9c08ee46795 100644 --- a/.github/workflows/deploy-prodbox.yml +++ b/.github/workflows/deploy-prodbox.yml @@ -2,6 +2,15 @@ name: Deploy Prodbox on: workflow_dispatch: + inputs: + check_deployment_blocked: + description: "Check #deployment locks or force deploy" + required: true + default: "check" + type: choice + options: + - "check" + - "force (dangerous)" concurrency: group: deploy_prodbox @@ -36,6 +45,7 @@ jobs: slack_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Slack Check Deployment Blocked + if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }} id: check_deployment_blocked uses: ./.github/actions/slack-check-deployment-blocked with: diff --git a/.github/workflows/deploy-viz.yml b/.github/workflows/deploy-viz.yml index 6d386cce67b23..40c1e496bd25c 100644 --- a/.github/workflows/deploy-viz.yml +++ b/.github/workflows/deploy-viz.yml @@ -2,6 +2,15 @@ name: Deploy Viz on: workflow_dispatch: + inputs: + check_deployment_blocked: + description: "Check #deployment locks or force deploy" + required: true + default: "check" + type: choice + options: + - "check" + - "force (dangerous)" concurrency: group: deploy_viz @@ -35,6 +44,7 @@ jobs: slack_token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Slack Check Deployment Blocked + if: ${{ github.event.inputs.check_deployment_blocked != 'force (dangerous)' }} id: check_deployment_blocked uses: ./.github/actions/slack-check-deployment-blocked with: diff --git a/connectors/package-lock.json b/connectors/package-lock.json index 10b01ae224d1d..7cd59a874d824 100644 --- a/connectors/package-lock.json +++ b/connectors/package-lock.json @@ -84,7 +84,7 @@ }, "../sdks/js": { "name": "@dust-tt/client", - "version": "1.0.6", + "version": "1.0.7", "license": "ISC", "dependencies": { "eventsource-parser": "^1.1.1",