diff --git a/.github/workflows/ToggleLockBranch.yml b/.github/workflows/ToggleLockBranch.yml new file mode 100644 index 00000000000..8d8e25adf98 --- /dev/null +++ b/.github/workflows/ToggleLockBranch.yml @@ -0,0 +1,23 @@ +name: Toggle lock branch + +on: + workflow_dispatch: # Triggered manually from the GitHub UI / Actions + +jobs: + ToggleLockBranch_job: + name: Toggle lock branch + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + - id: secrets + uses: SonarSource/vault-action-wrapper@v3 + with: + secrets: | + development/github/token/{REPO_OWNER_NAME_DASH}-lock token | lock_token; + development/kv/data/slack token | slack_api_token; + - uses: sonarsource/gh-action-lt-backlog/ToggleLockBranch@v2 + with: + github-token: ${{ fromJSON(steps.secrets.outputs.vault).lock_token }} + slack-token: ${{ fromJSON(steps.secrets.outputs.vault).slack_api_token }} + slack-channel: squad-jvm-notifs