Fix S2342 FP: Flaky reports #3227
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: Issue Labeled | |
on: | |
issues: | |
types: ["labeled"] | |
jobs: | |
CreateCard_Backlog_job: | |
name: Create Backlog card from label | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
# Single quotes must be used here https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#literals | |
# Only limited global functions are available in this context https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#functions | |
if: | | |
github.event.issue.state == 'Open' | |
&& startsWith(github.event.label.name, 'Type:') | |
steps: | |
- id: secrets | |
uses: SonarSource/vault-action-wrapper@v3 | |
with: | |
secrets: | | |
development/github/token/{REPO_OWNER_NAME_DASH}-kanban token | kanban_token; | |
- uses: sonarsource/gh-action-lt-backlog/CreateCardForIssueFromLabel@v1 | |
with: | |
github-token: ${{ fromJSON(steps.secrets.outputs.vault).kanban_token }} | |
project-number: 10 | |
CreateCard_Kanban_job: | |
name: Create Kanban card for labeled issue | |
runs-on: ubuntu-latest | |
# Single quotes must be used here https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#literals | |
# Only limited global functions are available in this context https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#functions | |
if: | | |
github.event.issue.state != 'closed' | |
&& startsWith(github.event.label.name, 'Sprint:') | |
steps: | |
- uses: sonarsource/gh-action-lt-backlog/CreateCardForIssue@v1 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
column-id: 4971951 |