gee
07/15/2025, 7:19 PMMarvin
07/15/2025, 7:19 PMMarvin
07/15/2025, 7:20 PMpython
from prefect import flow
from prefect.deployments import Deployment
@flow
def my_flow():
pass
deployment = flow.from_source(
source="<https://github.com/your-org/your-repo>",
entrypoint="path/to/file.py:my_flow",
reference="your-commit-sha" # Specify the exact commit SHA here
).deploy(
name="my-deployment",
work_pool_name="your-work-pool"
)
Could you:
1. Confirm if you're using this approach or a different one?
2. Share the specific error message you're seeing?
3. Let me know how you're currently handling the GitHub credentials?
This will help me provide more targeted assistance and, if needed, help file a bug report for either the token exposure or the SHA handling issue.
Also, as a security precaution, if you've noticed your GitHub token exposed in logs, I recommend:
1. Immediately revoke that token in GitHub
2. Generate a new token with minimal required permissions
3. Update your Prefect configuration to use the new token via a proper GitHubCredentials blockgee
07/15/2025, 7:23 PM$ prefect-cloud deploy tutorial/03_send.py:greeter \
--name private_greeter \
--from <https://github.com/gee-gendo/test-prefect-deployment/tree/><git commit sha>
after having logged in with
$ prefect-cloud github setup
and managed to run specific branches successfullyalex
07/15/2025, 7:52 PM