API tokens saved as plain text in Grokbot

Hi @bee, you have the mechanism right. A token entered in the secure card is saved on your bot’s computer and passed to the bot’s Shell commands as an environment variable. It isn’t handled the way Vault logins are. Output from those commands is masked, but nothing stops a command from writing the value into a file. This is known to the team.

Since the token turned up in files, I’d revoke it on GitHub now and create a new one limited to the repos your bots need.

Could you tell us where the 6 copies were: the file paths or file types, and whether they were on the bot’s computer or on your own Windows and Ubuntu machines? Please leave the token itself out. That shows whether the bot wrote them or they are copies of the secret store.