act/pkg
Kristofer f2e65e1d40
fix: Rootless error concerning `/var/run/docker.sock` (#2181)
* Use same socket defaulting strategy every time

* Always default to DOCKER_HOST

* Add more debug logs

* Commenting, and massively simplified socket logic

* Rever to upstream run_context.go

* Fix EACCESS error regarding /opt/hostedtoolcache

* Revert "Fix EACCESS error regarding /opt/hostedtoolcache"

This reverts commit b2a8394d33.

* Revert CLI debug logs

* Move socket and host handling to own function, and simplify logic

* Move to container package

* Make return be a struct

* Write tests to verify functionality

* Fix DOCKER_HOST being set to the string "DOCKER_HOST"

* Always use struct

* Use socketLocation, for DOCKER_HOST and more defaults

* Fixup arguments to GetSocketAndHost in test and root.go

* Un-struct hasDockerHost

* Fixup logic and set hasDockerHost

* Minor scoping & variable name change

* Move functionality to a new file

* Rename corresponding test

* Reviewfix

* Fix DOCKER_HOST expected

* Fix test assertions and add comments

* Swap comparison actual, expected

* Fixed no-DOCKER_HOST env test

* Fixed default socket test

* Add test to verify review comments

* Add more test for greater test coverage

* Consistent comment references

* Fix bug found while writing tests

* Passing tests

* NoMountNoHost testfix

* Rename test appropriately

* NoMount testfix

* Fixed OnlySocket

* Swap expected <-> actual in tests

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2024-02-06 17:18:11 +00:00
..
artifactcache fix: match cache `restore-keys` in creation reverse order (#2153) 2024-01-20 12:11:50 +00:00
artifacts chore: upgrade golangci-lint and address findings (#1904) 2023-07-10 17:12:12 -07:00
common feat: support offline mode (#2128) 2024-01-20 00:20:15 +00:00
container fix: Rootless error concerning `/var/run/docker.sock` (#2181) 2024-02-06 17:18:11 +00:00
exprparser Fix float formatting (#2018) 2023-10-13 20:01:04 +00:00
filecollector refactor: filecollector into new package (#2174) 2024-01-30 00:46:45 +00:00
lookpath feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
model fix: improve warning about remote not found (#2169) 2024-01-28 19:21:21 +00:00
runner fix: use correct path to toolcache (#1494) 2024-01-30 22:43:52 +00:00
workflowpattern feat: workflowpattern package (#1618) 2023-02-23 18:21:08 +00:00