Skip to content

v2.20.1 keeps workflow jobs running on dependabot-owned Pull Requests from accessing repository secrets. #686

Description

@zrhoffman

What I did:
Updated step-security/harden-runner from v2.20.0 to v2.20.1 in my repository.

My complete configuration for the harden-runner GHA:

        with:
          egress-policy: audit

Expected result: Workflow jobs running on dependabot-opened Pull Requests can still access my repository secrets.

Actual result: Workflow jobs running on dependabot-opened Pull Requests cannot access repository secrets.

More info:

This is unexpected because egress-policy is set to audit, not block.

As a workaround, adding pipelines.actions.githubusercontent.com:443 to allowed-endpoints allows workflow jobs running on dependabot-opened Pull Requests to access repository secrets again under step-security/harden-runner@v2.20.1 and up:

          allowed-endpoints: |
            pipelines.actions.githubusercontent.com:443

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions