Skip to content

Not possible for external fork contributors to pass CI tests #345

Closed as not planned
@MikeMcC399

Description

@MikeMcC399

This repository is not set up to allow external contributions.

It was already the case two years ago (#151 (comment)).

The netlify site ID is not available in a fork. See for example https://app.circleci.com/pipelines/github/cypress-io/netlify-plugin-cypress/1299/workflows/f447020d-6112-4f8a-86f6-85f372bb35e1/jobs/13008

"Preparing environment variables" does not include the following section for a fork run

Using environment variables from project settings and/or contexts:
  CACHE_VERSION=**REDACTED**
  CYPRESS_RECORD_KEY=**REDACTED**
  GH_TOKEN=**REDACTED**
  NETLIFY_AUTH_TOKEN=**REDACTED**
  NETLIFY_SITE_ID=**REDACTED**
  NPM_TOKEN=**REDACTED**

leading to

#!/bin/bash -eo pipefail
npx netlify build
 ›   Warning: Error: Could not find the site ID. Please run netlify link.
 ›       at error (file:///home/circleci/project/node_modules/netlify-cli/src/utils/command-helpers.mjs:182:52)
 ›       at checkOptions (file:///home/circleci/project/node_modules/netlify-cli/src/commands/build/build.mjs:14:5)
 ›       at BaseCommand.build (file:///home/circleci/project/node_modules/netlify-cli/src/commands/build/build.mjs:71:5)
 ›       at processTicksAndRejections (node:internal/process/task_queues:96:5)
 ›       at async BaseCommand.parseAsync (/home/circleci/project/node_modules/netlify-cli/node_modules/commander/lib/command.js:935:5)
 ›       at async file:///home/circleci/project/node_modules/netlify-cli/bin/run.mjs:26:3

Exited with code exit status 1
CircleCI received exit code 1

According to https://answers.netlify.com/t/is-a-netlify-site-id-private/15238 the Site ID is not private, however other permissions may be missing.

Please update https://github.com/cypress-io/netlify-plugin-cypress/blob/master/CONTRIBUTING.md and add instructions for external contributors working in a fork.

Possibilities

  • Not possible to contribute from a fork by an external contributor?

  • Possible to contribute but needs collaboration from a Cypress.io sponsor?

  • Here is the Netlify site ID and the instructions about how to use it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    e2etriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions