Giter Club home page Giter Club logo

Comments (3)

jagoodhand avatar jagoodhand commented on June 12, 2024 1

Worked out what the issue was. The GITHUB_TOKEN needed additional permissions (read/write) in Settings > Actions > General > Workflow Permissions (or could be done more granularly in the Workflow YAML). May be worth updating the docs to include this?

I was also wondering if you felt this workflow was still relevant in light of this feature: https://docs.github.com/en/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks
EDIT: answering my own question, I think it is still relevant because it means that you can control access to integrations tests that may cost more money separately to all other actions / workflows / tests that you may have in the repository.

from ok-to-test.

jagoodhand avatar jagoodhand commented on June 12, 2024 1

The documentation of this workflow is out of date, as you #21 (comment)! Would you be willing to open a separate PR for that? 🙏

Sure. I'll adjust the docs to mention the GITHUB_TOKEN permissions. I'll also explicitly mention that it is ok to use 'example.com' type urls when creating the GitHub app. When I was creating my app, I wasn't sure that it would be ok to use URLs that didn't resolve, or that I didn't own. I noticed #12 also referenced this, so thought it may be worth bulking the docs out a bit on this if that is OK?

from ok-to-test.

imjohnbo avatar imjohnbo commented on June 12, 2024

Thanks for the issue report and PR! 😍

I think a couple of things are going on:

  • The built-in GITHUB_TOKEN's defaults were recently changed to read-only, so explicit write permissions are helpful in the workflow, as you indicate here (or the defaults could be set at the enterprise, organization, or repo level). GITHUB_TOKEN is technically a special GitHub App installation access token generated by GitHub Actions but is unrelated to the other installation access token we generate here and optionally use here.
  • The documentation of this workflow is out of date, as you also indicate! Would you be willing to open a separate PR for that? 🙏

from ok-to-test.

Related Issues (12)

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.