Toggle lock branch #98
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/[email protected] | |
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@v1 | |
with: | |
github-token: ${{ fromJSON(steps.secrets.outputs.vault).lock_token }} | |
slack-token: ${{ fromJSON(steps.secrets.outputs.vault).slack_api_token }} | |
slack-channel: team-lang-dotnet |