Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use pull_request_target for integration tests #1035

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

jnaulty
Copy link
Contributor

@jnaulty jnaulty commented Dec 13, 2024

Relates to:

https://github.com/ai16z/eliza/pull/993/files#r1883351009

https://discord.com/channels/1253563208833433701/1308960830670377070/1317011277155012631

Risks

Medium

  • OpenAI API Key would be accessible to github actions running integration tests for pull requests from forked repos

There are potential risks with exposing this secret (see: https://nathandavison.com/blog/github-actions-and-the-threat-of-malicious-pull-requests )

Response + Mitigations were provided by GitHub here: https://securitylab.github.com/resources/github-actions-preventing-pwn-requests/

I'd recommend a 'spend limit' on the OpenAI API in question. As well as a plan to quickly revoke the api key if required.

Background

What does this PR do?

Allows OpenAI API Secret Value to be used by pull requests that come from forked repos

What kind of change is this?

Bug fixes

Why are we doing this? Any context or related work?

Allows testing of new code coming from forked repos

Documentation changes needed?

N/A

Testing

Where should a reviewer start?

Review the github docs above.
Unfortunately, this would require landing in develop then landing in main to work.

Detailed testing steps

Trigger an integration test: https://github.com/ai16z/eliza/actions/workflows/integrationTests.yaml

@jnaulty jnaulty marked this pull request as ready for review December 13, 2024 06:29
@monilpat monilpat merged commit f4d8dfe into elizaOS:develop Dec 13, 2024
2 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.

2 participants