Skip to content

Disable credential persisting for actions/checkout #1859

@nedsalk

Description

@nedsalk

It seems that the default behavior of persist-credentials:true is generally a security issue (actions/checkout#485). We should be disabling it in all of our workflows. Some jobs might fail if they were depending on this persisted value. The solution would be to define it in the job's environment, e.g.:

- name: Do something
  run: echo something
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 

For more info, take a look at #1848 where this problem was found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreIssue is a chore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions