Skip to content

SONARKT-303 - Implement rule S6527: Function chain using "filter" sho… #239

SONARKT-303 - Implement rule S6527: Function chain using "filter" sho…

SONARKT-303 - Implement rule S6527: Function chain using "filter" sho… #239

Workflow file for this run

name: dogfood merge
# This workflow is triggered on pushes to master and dogfood branches
on:
push:
branches:
- master
- 'dogfood/**'
env:
SLACK_USERNAME: Dogfood build action
jobs:
dogfood_merge:
runs-on: ubuntu-latest
name: Update dogfood branch
permissions:
id-token: write # required for SonarSource/vault-action-wrapper
contents: write # required to grant GITHUB_TOKEN writing permission
steps:
- name: get secrets
id: secrets
uses: SonarSource/vault-action-wrapper@d1c1ab4ca5ad07fd9cdfe1eff038a39673dfca64 # tag=2.4.2-1
with:
secrets: |
development/kv/data/slack webhook | SLACK_WEBHOOK;
- name: git octopus step
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: dogfood
uses: SonarSource/gh-action_dogfood_merge@v1
with:
dogfood-branch: 'dogfood-on-peach'
# Use the output from the `dogfood` step
- name: Get the name of the dogfood branch and its HEAD SHA1
run: echo "The dogfood branch was `${{ steps.dogfood.outputs.dogfood-branch }}` and its HEAD SHA1 was `${{ steps.dogfood.outputs.sha1 }}`"
#slack notifications
- name: Notify failures on Slack
if: failure()
uses: 8398a7/action-slack@v3
with:
status: failure
fields: repo,author,eventName
channel: '#team-lang-kotlin'
env:
SLACK_WEBHOOK_URL: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_WEBHOOK }}