Skip to content

Checksum pinning #2222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pd93 opened this issue Apr 28, 2025 · 1 comment · May be fixed by #2223
Open

Checksum pinning #2222

pd93 opened this issue Apr 28, 2025 · 1 comment · May be fixed by #2223
Labels
area: includes Changes related to included taskfiles. area: remote Changes related to remote taskfiles.

Comments

@pd93
Copy link
Member

pd93 commented Apr 28, 2025

Description

As discussed in #1317 (comment), there is currently no way to pin checksums of included taskfiles. This issues tracks this feature request.

Pinning would allow users to ensure the contents of their Taskfiles are constant and trusted by performing a checksum hash on the file before reading it and comparing it to a given checksum in the include block of the parent Taskfile. For example:

version: '3'

includes:
  included:
    taskfile: https://taskfile.dev
    internal: true
    checksum: c153e97e0b3a998a7ed2e61064c6ddaddd0de0c525feefd6bba8569827d8efe9

tasks:
  default:
    cmds:
      - task: included:default

This example requires the Remote Taskfiles experiments to be enabled. However, this will work for local files too. In this example, we would no longer get prompted to check if we trust the contents of the file as we have already verified its contents by providing a checksum.

@task-bot task-bot added the state: needs triage Waiting to be triaged by a maintainer. label Apr 28, 2025
@pd93 pd93 linked a pull request Apr 28, 2025 that will close this issue
@pd93 pd93 added area: remote Changes related to remote taskfiles. area: includes Changes related to included taskfiles. and removed state: needs triage Waiting to be triaged by a maintainer. labels Apr 28, 2025
@pd93 pd93 linked a pull request Apr 28, 2025 that will close this issue
@joeblew999
Copy link

same as this I think. #2194

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: includes Changes related to included taskfiles. area: remote Changes related to remote taskfiles.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants