-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): Enable creating
Workflow
s from the CLI
- Loading branch information
1 parent
f24bf4c
commit 1372309
Showing
4 changed files
with
66 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
from dotenv import find_dotenv, load_dotenv | ||
|
||
from tracecat.auth import Role | ||
|
||
load_dotenv(find_dotenv()) | ||
|
||
# In reality we should use the user's id from config.toml | ||
USER = "default-tracecat-user" | ||
SECRET = "test-secret" | ||
|
||
ROLE: Role = Role(type="service", user_id=USER, service_id="tracecat-runner") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters