-
-
Notifications
You must be signed in to change notification settings - Fork 712
Labels
area: includesChanges related to included taskfiles.Changes related to included taskfiles.area: remoteChanges related to remote taskfiles.Changes related to remote taskfiles.
Description
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.
Metadata
Metadata
Assignees
Labels
area: includesChanges related to included taskfiles.Changes related to included taskfiles.area: remoteChanges related to remote taskfiles.Changes related to remote taskfiles.