Code Monkey home page Code Monkey logo

Comments (1)

jrhone avatar jrhone commented on May 8, 2024

@tvst Did you see the email I forwarded you with the conversation with Cypress Support?

Many CI providers (Circle being one of them) do not pass private environment variables along to forked PRs for security reasons. You can read more about their decision here: https://circleci.com/docs/2.0/oss/#pass-secrets-to-builds-from-forked-pull-requests

We face this problem in our own project.We have many open source projects running Cypress tests with contributions from forked PRs. You can see some of our setup in our circle.yml file. Basically, we don't record the test runs if the env var is not present and fallback to just running the tests without the --record flag.

You should also understand a bit about the consequences of exposing the Cypress record key, so you can assess the risks of exposing it.

Anyone that has access to both the projectId and the record key of your project will be able to record runs to your organization in the Dashboard. Typically, you would not want anyone running tests because this could drive up the number of tests you've run. Since Cypress bills based on the number of tests - this would mean they could use up all allotted tests and there would be consequences to that.

And

If the build is triggered from a forked pull request, the environment variables will be inaccessible. It doesn't matter where the pull request originally was forked from - it's all about what triggers the build.

from streamlit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.