rtCamp/action-slack-notify

Unable to disable Vault integration

Closed this issue · 2 comments

I have a workflow that contains the following

...
      - name: Import secrets
        uses: hashicorp/vault-action@v2.1.2
        with:
          url: ${{ secrets.VAULT_URL }}
          token: ${{ secrets.VAULT_TOKEN }}
          exportToken: true
          secrets: |
            ...
...
      - name: Send event to Slack
        uses: rtCamp/action-slack-notify@v2
        env:
          SLACK_CHANNEL: <channel>
          SLACK_COLOR: ${{ job.status }}
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

I use the Vault action early in the workflow and export the token, but I don't want to use vault with action-slack-notify. Any way of disabling it with config or a different env, or should I just wipe the VAULT_TOKEN env before calling this action?

This is fixable, I will create a PR for this soon.

This has been released in https://github.com/rtCamp/action-slack-notify/releases/tag/v2.2.0
You can use @v2 tag of this action to use this feature.