Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kumaranvpl
Copy link
Collaborator

@kumaranvpl kumaranvpl commented Feb 5, 2025

Why are these changes needed?

By default, PRs from forks does not has permission to access secrets. So, the tests fail for PR from fork making the maintainers life tougher for making sure that the contributor doesn't make any breaking changes.

To prevent this, we should be able to provide access to secrets for PRs from forks in a safew way. This changes are written based on - https://michaelheap.com/access-secrets-from-forks/.

The jobs checks out the code only if a person with write access to repository approved the CI job run. This requires carefully reading the changes before approving the CI run.

@davorrunje I could add a extra step to check whether a PR from fork has a label called "safe to test" which should be added by maintainer after reviewing the code
image

Related issue number

Closes #399

Checks

@kumaranvpl kumaranvpl requested a review from davorrunje February 5, 2025 08:12
@kumaranvpl kumaranvpl marked this pull request as draft February 5, 2025 08:12
@codecov
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
3.10 55.88% <ø> (ø)
3.13 34.64% <ø> (ø)
3.9 33.72% <ø> (ø)
browser_use 29.40% <ø> (ø)
crawl4ai 29.61% <ø> (ø)
docs 28.59% <ø> (ø)
graph-rag-falkor-db 28.03% <ø> (ø)
interop 29.47% <ø> (ø)
jupyter-executor 30.72% <ø> (ø)
macos-latest 56.31% <ø> (ø)
retrievechat 29.54% <ø> (ø)
retrievechat-mongodb 28.31% <ø> (ø)
retrievechat-pgvector 28.31% <ø> (ø)
retrievechat-qdrant 28.23% <ø> (ø)
twilio 28.24% <ø> (ø)
ubuntu-latest 56.29% <ø> (ø)
windows-latest 53.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@davorrunje davorrunje marked this pull request as ready for review February 6, 2025 13:54
@davorrunje davorrunje added this pull request to the merge queue Feb 6, 2025
Merged via the queue into ag2ai:main with commit 086f0a8 Feb 6, 2025
105 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: CI tests are failing for PRs from forked repos

2 participants