Skip to content

Commit

Permalink
GitHub workflow: Add ToggleLockBranch (#6780)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-mikula-sonarsource committed Feb 23, 2023
1 parent 53f1a8d commit ea89757
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ToggleLockBranch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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@2.4.3-1
with:
secrets: |
development/github/token/{REPO_OWNER_NAME_DASH}-lock token | lock_token;
- uses: sonarsource/gh-action-lt-backlog/ToggleLockBranch@v1
with:
github-token: ${{ fromJSON(steps.secrets.outputs.vault).lock_token }}

0 comments on commit ea89757

Please sign in to comment.