Skip to content

in PR checks Error: Failed to get ID token: Error message: Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable #184

Open
@lectrical

Description

@lectrical

I was looking to add attestations to jqlang/jq#3220 and it fails in the PR checks but works in the downstream repo.

The error seems to be the same as seen when not providing correct permissions, though they are present.

permissions:
  id-token: write
  contents: read
  attestations: write

https://github.com/jqlang/jq/actions/runs/12267835999/job/34228631988?pr=3220

The changes

https://github.com/jqlang/jq/pull/3220/files

Am i overlooking something here? As in this in an intended or unintended outcome.

I did not see anything gin the readme to suggest a solution

https://github.com/actions/attest?tab=readme-ov-file#actionsattest

What is the correct way forward to allow attestations in a pr action check or should this be avoided?

Thanks in advance.

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