Skip to content

Commit

Permalink
SONARJAVA-5170 Add ToggleLockBranch.yml (#4921)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mikula-sonarsource authored Nov 8, 2024
1 parent 7989f43 commit 2448da1
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ToggleLockBranch.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2448da1

Please sign in to comment.