Giter VIP home page Giter VIP logo

Comments (8)

varunsh-coder avatar varunsh-coder commented on June 1, 2024 1

Thanks for reporting @jauderho. It will be done as part of the next release.

from harden-runner.

varunsh-coder avatar varunsh-coder commented on June 1, 2024 1

New version has been released to address this issue. You do not need to explicitly add *.actions.githubusercontent.com to the allowed list. It has been added to the default allowed list. Just upgrade to v2.5.1.

https://github.com/step-security/harden-runner/releases/tag/v2.5.1

from harden-runner.

christophetd avatar christophetd commented on June 1, 2024 1

Yes, that was prior to upgrading. I was under the impression that I had to manually add *.actions.githubusercontent.com, but I may have been mistaken. All good if you're aware!

from harden-runner.

varunsh-coder avatar varunsh-coder commented on June 1, 2024 1

Hey @varunsh-coder, is actions.githubusercontent.com (no sub-subdomain *.actions) in the default allowed list?
It's failing a workflow due to this. See https://app.stepsecurity.io/github/kommitters/editorjs-toggle-block/actions/runs/6005650946.

Hi @miguelnietoa it is failing because of objects.githubusercontent.com which is a different sub domain.

from harden-runner.

miguelnietoa avatar miguelnietoa commented on June 1, 2024 1

Oops! 😅 Thank you @varunsh-coder

from harden-runner.

christophetd avatar christophetd commented on June 1, 2024

For the record, this issue broke a number of GitHub Actions that just became completely unresponsive e.g. https://github.com/DataDog/stratus-red-team/actions/runs/5974891989 and failed after 30+ minutes

image

Upgrading to v2.5.1 was not enough, it seems that I had to explicitly allow the new endpoint in my configuration:

    steps:
      - name: Harden Runner
        uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
        with:
          egress-policy: block
          allowed-endpoints: >
            ...
            *.actions.githubusercontent.com:443

from harden-runner.

varunsh-coder avatar varunsh-coder commented on June 1, 2024

Hi @christophetd, apologies for the inconvenience.

Upgrading to v2.5.1 should fix it, since it adds the same *.actions.githubusercontent.com in the default allowed list. Can you please share a workflow run with v2.5.1 where it did not work?

As an example, in the link you shared, I see that an older version is in use: https://github.com/DataDog/stratus-red-team/actions/runs/5974891989/job/16209832133#step:1:24

from harden-runner.

miguelnietoa avatar miguelnietoa commented on June 1, 2024

Hey @varunsh-coder, is actions.githubusercontent.com (no sub-subdomain *.actions) in the default allowed list?
It's failing a workflow due to this. See https://app.stepsecurity.io/github/kommitters/editorjs-toggle-block/actions/runs/6005650946.

from harden-runner.

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.