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

[FEATURE] Environment variable to simplify --token global flag #411

Open
mroy-seedbox opened this issue Feb 5, 2025 · 2 comments
Open
Assignees
Labels
feature request New feature or request

Comments

@mroy-seedbox
Copy link

mroy-seedbox commented Feb 5, 2025

Description of the problem being solved

When using the Slack CLI in CI/CD pipelines today, an auth token must be used (instead of the traditional slack login method). This requires the usage of the --token global flag in every single command (commands which may very well appear in logs, etc.)

Instead, it would be much more secure (and also convenient) to allow an environment variable to be used as a fallback for the global flag. This is already the case for --config-dir, which can be specified via SLACK_CONFIG_DIR instead (see documentation here).

It would be wonderful if we could also specify an environment variable like SLACK_AUTH_TOKEN, instead of specifying --token for every command.

Alternative solutions

Being able to log in with a token (and not having to keep repeating it afterwards).

However, an environment variable would be even better (and probably easier to implement as well).

@hello-ashleyintech hello-ashleyintech self-assigned this Feb 5, 2025
@hello-ashleyintech hello-ashleyintech added the feature request New feature or request label Feb 5, 2025
@hello-ashleyintech
Copy link

Hi, @mroy-seedbox! Thanks for submitting this! :) I will pass this along to our CLI folks as a potential refinement for the future; will update back with any new info! 🙌

@mroy-seedbox
Copy link
Author

Here is another place where things could be simplified by using an env var directly instead of a CLI flag:

Slack CLI Deployment using GitHub Actions

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

No branches or pull requests

2 participants