Giter Site home page Giter Site logo

Comments (9)

iShibi avatar iShibi commented on September 16, 2024 3

If you want to look at a similar Github action here it is

It's not about automating. The said GitHub action will do the same thing that vercel is doing currently. It's about securing secrets stored in the environment variable. Someone can open a PR to get those secrets and we will be too late to do anything as the CI will build it automatically. On per PR basis we can first check that the PR is not doing anything with the secrets and then authorize the build.

from defaang.

iShibi avatar iShibi commented on September 16, 2024 1

If you have set secrets in Environment Variables on vercel then I'll say keep it enabled and allow it to run on each PR after checking its changes. This would be time consuming but a safer option.

from defaang.

Dun-sin avatar Dun-sin commented on September 16, 2024 1

@Dun-sin hmm when something is merged into main, it's already deployed into the main Vercel instance. So I'm not sure if that's necessary actually

I know, personally I thought the issue to the bot giving those warnings is because it was getting from a branch.

So I created a Github action to make vercel not deploy in any branch unless it's the main one.

It fixed the issue without me having to turn off the protection in vercel itself

from defaang.

Dun-sin avatar Dun-sin commented on September 16, 2024 1

Ah I see.

Still from my perspective, it is really convenient to be able to review the changes on a Vercel instance. As you mentioned, it's good for reviewing things visually

Yes, it doesn't take away the preview part of things. Just holds up the actual deployment until merged into main

from defaang.

iShibi avatar iShibi commented on September 16, 2024

This is just vercel trying to be secure by default and it can be fixed by turning off git-fork-protection in the project settings:

vercel

@ykdojo

from defaang.

ykdojo avatar ykdojo commented on September 16, 2024

Hmm interesting. Do you think it's safe to turn it off @iShibi?

from defaang.

Dun-sin avatar Dun-sin commented on September 16, 2024

If you want to look at a similar Github action here it is

from defaang.

ykdojo avatar ykdojo commented on September 16, 2024

@Dun-sin hmm when something is merged into main, it's already deployed into the main Vercel instance. So I'm not sure if that's necessary actually

from defaang.

ykdojo avatar ykdojo commented on September 16, 2024

Ah I see.

Still from my perspective, it is really convenient to be able to review the changes on a Vercel instance. As you mentioned, it's good for reviewing things visually

from defaang.

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.