Skip to content

GHA post cache job cleanup permission issues #161

@jhlegarreta

Description

@jhlegarreta

What happened?

GitHub actions post cache job clean up is raising a warning since it does not have permission to tar some directiories:
https://github.com/nipreps/nireports/actions/runs/12682317163/job/35347515432?pr=160

This likely comes from the path being used in the action:

What command did you use?

N/A

What version of the software are you running?

main

How are you running this software?

Other

Is your data BIDS valid?

Yes

Are you reusing any previously computed results?

No

Please copy and paste any relevant log output.

Post job cleanup.
/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/nireports/nireports --files-from manifest.txt --use-compress-program zstdmt
/usr/bin/tar: ../../../../../var/lib/apt/lists/partial: Cannot open: Permission denied
/usr/bin/tar: ../../../../../var/lib/apt/lists/lock: Cannot open: Permission denied
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to save: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2

Additional information / screenshots

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions