]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
BUILD-3596 Fix Docker Image release and slack messages
authorMate Molnar <mate.molnar@sonarsource.com>
Tue, 15 Aug 2023 08:41:29 +0000 (10:41 +0200)
committerMate Molnar <matemoln@users.noreply.github.com>
Wed, 16 Aug 2023 07:32:17 +0000 (09:32 +0200)
.github/workflows/release.yml

index e73e5030a5b820a6ba78a28b12fef55705d2fada..69b1e24599517dcd8849aff584ed45878733788c 100644 (file)
@@ -17,7 +17,8 @@ jobs:
       slackChannel: team-sonarqube-build
   release_docker:
     permissions:
-      id-token: write
+      id-token: write # Required by SonarSource/vault-action-wrapper
+      contents: write # Required by softprops/action-gh-release
     runs-on: ubuntu-latest
     name: Start Docker release process
     needs: release
@@ -35,6 +36,6 @@ jobs:
       if: failure()
       with:
         channel-id: team-sonarqube-build
-        slack-message: "Release failed, see the logs at https://github.com/{{ GITHUB_REPOSITORY }}/actions by {{ GITHUB_ACTOR }}"
+        slack-message: "Releasing Docker Image failed, see the logs at https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} by ${{ github.actor }}"
       env:
         SLACK_BOT_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).SLACK_BOT_TOKEN }}