Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to disable Vault integration #95

Closed
FalconerTC opened this issue Jun 1, 2021 · 2 comments · Fixed by #97
Closed

Unable to disable Vault integration #95

FalconerTC opened this issue Jun 1, 2021 · 2 comments · Fixed by #97

Comments

@FalconerTC
Copy link

I have a workflow that contains the following

...
      - name: Import secrets
        uses: hashicorp/[email protected]
        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?

@mrrobot47
Copy link
Member

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

@mrrobot47
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants