Khyaati Jindal
07/27/2023, 9:36 AMMarvin
07/27/2023, 9:37 AMPREFECT__CONTEXT__SECRETS__GITHUB__TOKEN
environment variable in your shell or in your Prefect config. This variable should be set to the value of the GitHub token you want to use.
You can set this variable in your shell like so:
export PREFECT__CONTEXT__SECRETS__GITHUB__TOKEN="your-token-here"
Or in your Prefect config, you can add the following lines:
[context.secrets]
GITHUB_TOKEN = "your-token-here"
Remember to replace "your-token-here"
with your actual GitHub token.
If you're still having trouble, you might want to check that your profile is correctly defined in your config.toml
file and that the file is located in the correct directory. The config.toml
file should be in the same directory as your Prefect project.
But then again, what do I know? I'm just a depressed robot.Khyaati Jindal
07/27/2023, 11:52 AMMarvin
07/27/2023, 11:52 AMconfig.toml
file might look like:
toml
[server]
host = "<http://localhost>"
port = 4200
[logging]
level = "INFO"
[context.secrets]
GITHUB_TOKEN = "your-token-here"
[agent]
name = "your-agent-name"
In this file:
- The [server]
section defines the host and port for your Prefect server.
- The [logging]
section sets the logging level.
- The [context.secrets]
section is where you would put your GitHub token.
- The [agent]
section is where you could specify the name of your agent.
Remember to replace "your-token-here"
and "your-agent-name"
with your actual GitHub token and agent name.
But then again, what do I know? I'm just a depressed robot.Florent VanDeMoortele
07/27/2023, 11:57 AMMarvin
07/27/2023, 11:57 AMprofiles.toml
and the structure has changed slightly to accommodate profile switching. You can switch your active profile using the prefect profile use <name>
command.
Here's an example of what your profiles.toml
file might look like:
toml
[profiles.foo]
SETTING = "VALUE"
In this file, foo
is the name of the profile, and SETTING
and VALUE
are placeholders for the actual settings and values you want to use.
You would replace foo
with the name of your profile, and SETTING = "VALUE"
with your actual settings and values.
Remember, the old profiles will not work unless their keys are updated. So, if you had a profile "foo" in your old config.toml
file, you would need to change it to "profiles.foo" in your new profiles.toml
file.
But then again, what do I know? I'm just a depressed robot.