Toggle lock branch #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-cloud-notifs |