ChristopherHX
fc2883b754
fix: don't allow -self-hosted
mode as container image ( #1783 )
...
* fix: don't allow `-self-hosted` mode as container image
* fix: jobcontainer in hostmode platform
* Update run_context.go
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-05-03 17:49:17 +00:00
ChristopherHX
9ae1554d79
Refactor evaluate yaml node do not alter nested nodes ( #1761 )
...
* refactor: EvaluateYamlNode do not alter nested nodes
* fix build error
* fix op
* fix lint
* ...
* fixup
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-05-03 17:26:28 +00:00
ChristopherHX
e879afcd30
fix: fallback to unauthenticated pull ( #1774 )
...
* fix: fallback to unauthenticated pull
* move logger def
* fixup
* add import
* .
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-05-03 16:44:26 +00:00
Shubh Bapna
f3daf48fef
fix: remove hardcoded reference to github.com when using reusable remote workflows and remote actions ( #1784 )
...
* fix filename for remote reusable workflow and remove hardcoded reference to github.com
* remove hardcoded reference to github.com for remote action
2023-05-03 15:46:28 +00:00
Jason Song
b51f608660
Support cache ( #1770 )
...
* feat: port
* fix: use httprouter
* fix: WriteHeader
* fix: bolthold
* fix: bugs
* chore: one less file
* test: test handler
* fix: bug in id
* test: fix cases
* chore: tidy
* fix: use atomic.Int32
* fix: use atomic.Store
* feat: support close
* chore: lint
* fix: cache keys are case insensitive
* fix: options
* fix: use options
* fix: close
* fix: ignore close error
* Revert "fix: close"
This reverts commit d53ea7568ba03908eb153031c435008fd47e7ccb.
* fix: cacheUrlKey
* fix: nil close
* chore: lint code
* fix: test key
* test: case insensitive
* chore: lint
2023-04-28 15:57:40 +00:00
Markus Wolf
364adb2acf
chore: run act from cli on linux ( #1758 )
...
* chore: run act from cli on linux
To prevent issues like #1756 in the future, we need to
run act from the cli through all the root setup code.
This ensures that the basic CLI setup can succeed.
Co-authored-by: Björn Brauer <zaubernerd@zaubernerd.de>
* chore: set platform spec to use
---------
Co-authored-by: Björn Brauer <zaubernerd@zaubernerd.de>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2023-04-25 17:32:34 +00:00
ChristopherHX
bd467ec0ad
Revert breaking docker socket changes ( #1763 )
...
* fix: rework docker socket changes
* fixup
* fixup
* fixes
* patch
* ...
* lint
* Fix docker outputs windows
* fix type
* Revert containerDaemonSocket breaking change
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-25 16:31:17 +00:00
Zettat123
3d11b7686d
avoid using log.Fatal ( #1759 )
2023-04-25 02:09:54 +00:00
dependabot[bot]
6abb05802f
build(deps): bump codecov/codecov-action from 3.1.2 to 3.1.3 ( #1752 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.2...v3.1.3 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-24 03:13:14 +00:00
R
6764ffdd93
ci: deduplicate running workflows ( #1751 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-23 19:18:38 +00:00
R
9c3b242b12
fix: try finding a socket, otherwise fail, respect user choice ( #1745 )
...
* fix: try finding a socket, otherwise fail, respect user choice
* Update cmd/root.go
Co-authored-by: Jason Song <i@wolfogre.com>
* Update cmd/root.go
Co-authored-by: Jason Song <i@wolfogre.com>
---------
Co-authored-by: Jason Song <i@wolfogre.com>
2023-04-23 19:02:56 +00:00
Jason Song
eb6b7f0609
Improve watchAndRun ( #1743 )
...
* fix: improve watchAndRun
* fix: lint
* fix: lint
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-19 04:19:40 +00:00
M.Yamashita
b7ebd96ec7
Remove the comment-out code. ( #1691 )
...
Co-authored-by: Jason Song <i@wolfogre.com>
2023-04-19 03:46:00 +00:00
Andy Wang
b6cb81468b
typo: fix expression of warning message on macOS ( #1693 )
...
Co-authored-by: Jason Song <i@wolfogre.com>
2023-04-19 03:00:33 +00:00
ChristopherHX
b6ccb2fa98
fix: environment handling windows (host mode) ( #1732 )
...
* fix: environment handling windows (host mode)
* fixup
* fixup
* add more tests
* fixup
* fix setenv
* fixes
* [skip ci] Apply suggestions from code review
Co-authored-by: Jason Song <i@wolfogre.com>
* Update side effects
---------
Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-18 18:09:57 +00:00
Björn Brauer
1a239d7ab7
fix: ensure networkmode "host" unless explicitly specified ( #1739 )
...
act defaults network mode to "host", but when `--container-options` are
passed on the CLI, it uses the docker CLI options parser, which fills
empty values with defaults, in which case network mode is set to
"default".
Unless the user explicitly sets `--container-options="--network=xxx"`,
we should always default to "host", to keep act's behaviour.
Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-18 14:37:59 +00:00
Jason Song
8d2c320f7a
Avoid using log.Fatal
in pkg/*
( #1705 )
...
* fix: common
* fix: in runner
* fix: decodeNode
* fix: GetMatrixes
* Revert "fix: common"
This reverts commit 6599803b6ae3b7adc168ef41b4afd4d89fc22f34.
* fix: GetOutboundIP
* test: fix cases
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-18 14:17:36 +00:00
ChristopherHX
0539eb2ac5
feat: support yaml env/secrets/inputs file ( #1733 )
...
* support yaml env/secrets/inputs file
* Update root.go
* read the docs again..
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-18 13:35:31 +00:00
dependabot[bot]
e95c7aba65
build(deps): bump codecov/codecov-action from 3.1.1 to 3.1.2 ( #1735 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.1...v3.1.2 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 03:13:12 +00:00
ChristopherHX
2e9189a6e2
fix: ghc assignment typo ( #1729 )
...
* fix: ghc assignment typo
* fixup server_url
2023-04-13 14:09:29 +00:00
ChristopherHX
e71161acde
fix: reusable workflow panic ( #1728 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-13 13:47:59 +00:00
Markus Wolf
8b25ad4dbe
fix: add server_url
attribute to github context ( #1727 )
...
* fix: add `server_url` attribute to github context
The `server_urL` attribute was missing in the `github` context.
Previously it was exposed as environment variable only.
Closes #1726
* fix: also set `api_url` and `graphql_url` attributes
2023-04-13 13:09:28 +00:00
dependabot[bot]
2d6c284491
build(deps): bump megalinter/megalinter from 6.22.1 to 6.22.2 ( #1720 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.22.1 to 6.22.2.
- [Release notes](https://github.com/megalinter/megalinter/releases )
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/megalinter/megalinter/compare/v6.22.1...v6.22.2 )
---
updated-dependencies:
- dependency-name: megalinter/megalinter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-10 03:50:21 +00:00
dependabot[bot]
3f8942c62d
build(deps): bump megalinter/megalinter from 6.21.0 to 6.22.1 ( #1710 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.21.0 to 6.22.1.
- [Release notes](https://github.com/megalinter/megalinter/releases )
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/megalinter/megalinter/compare/v6.21.0...v6.22.1 )
---
updated-dependencies:
- dependency-name: megalinter/megalinter
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 03:13:25 +00:00
Jason Song
1dcd52ba08
feat: improve GetOutboundIP ( #1707 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-31 13:28:08 +00:00
Jason Song
92da209c98
fix: use os.UserHomeDir ( #1706 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-31 13:08:46 +00:00
Kris
bd27c853b1
Make sure working directory is respected when configured from matrix ( #1686 )
...
* Make sure working directory is respected when configured from matrix
* Fix regression by setting Workingdirectory on stepRun instead of step or too early
2023-03-28 12:24:03 +00:00
dependabot[bot]
d0a5194266
build(deps): bump actions/stale from 7 to 8 ( #1700 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 7 to 8.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v7...v8 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-27 03:29:53 +00:00
dependabot[bot]
114db8e32c
build(deps): bump megalinter/megalinter from 6.20.1 to 6.21.0 ( #1699 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.20.1 to 6.21.0.
- [Release notes](https://github.com/megalinter/megalinter/releases )
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/megalinter/megalinter/compare/v6.20.1...v6.21.0 )
---
updated-dependencies:
- dependency-name: megalinter/megalinter
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-27 03:13:54 +00:00
dependabot[bot]
cbaa7fb49a
build(deps): bump actions/setup-go from 3 to 4 ( #1689 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-20 03:31:00 +00:00
dependabot[bot]
0207edafaa
build(deps): bump megalinter/megalinter from 6.20.0 to 6.20.1 ( #1679 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.20.0 to 6.20.1.
- [Release notes](https://github.com/megalinter/megalinter/releases )
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/megalinter/megalinter/compare/v6.20.0...v6.20.1 )
---
updated-dependencies:
- dependency-name: megalinter/megalinter
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-19 23:37:58 +00:00
dependabot[bot]
9419713cf3
build(deps): bump fregante/setup-git-user from 1 to 2 ( #1664 )
...
Bumps [fregante/setup-git-user](https://github.com/fregante/setup-git-user ) from 1 to 2.
- [Release notes](https://github.com/fregante/setup-git-user/releases )
- [Commits](https://github.com/fregante/setup-git-user/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: fregante/setup-git-user
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-19 23:21:57 +00:00
Shubh Bapna
b7905c0a84
feat: specify matrix on command line ( #1675 )
...
* added matrix option
* select the correct subset of matrix configuration after producing all the matrix configuration
* add tests
* update readme
* lint fix
* remove matrix from readme
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-19 17:25:55 +00:00
Shubham Agrawal
6f6aad9a9b
Support for docker steps in host environment ( #1674 )
...
* Support for docker steps in host environment
* removed workdir changes
2023-03-14 14:07:31 +00:00
Markus Wolf
8d098545de
fix: correct ref and ref_name ( #1672 )
...
* fix: correct ref and ref_name
The ref in the GitHub context is always full qualified
(e.g. refs/heads/branch, refs/tags/v1).
The ref_name is the ref with the strippep prefix.
In case of pull_requests, this is the merge commit ref
(e.g. refs/pull/123/merge -> 123/merge).
* test: update test data
2023-03-09 20:03:13 +00:00
Jason Song
e29fd4cac7
fix: return err in walk ( #1667 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-08 15:13:11 +00:00
ChristopherHX
b2784e3104
test: Enshure ForcePull config doesn't break docker actions (1661)
2023-03-08 14:57:49 +00:00
ChristopherHX
073d205547
fix: crash if the id tool fails to run in the container (1660)
2023-03-08 14:41:25 +00:00
dependabot[bot]
554522b044
build(deps): bump megalinter/megalinter from 6.19.0 to 6.20.0 ( #1665 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.19.0 to 6.20.0.
- [Release notes](https://github.com/megalinter/megalinter/releases )
- [Changelog](https://github.com/oxsecurity/megalinter/blob/main/CHANGELOG.md )
- [Commits](https://github.com/megalinter/megalinter/compare/v6.19.0...v6.20.0 )
---
updated-dependencies:
- dependency-name: megalinter/megalinter
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-06 03:30:59 +00:00
Tony Soloveyv
5b7fb3fb22
Improve XDG Spec supporting ( #1656 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-03 14:39:02 +00:00
Jason Song
d8ea1eb236
fix: safe file name ( #1651 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-03 08:38:33 +00:00
Alex Savchuk
1f1adbac3d
fix: compare properties of Invalid types ( #1645 )
...
* fix: compare properties of Invalid types
fix: compare properties of Invalid types #1643
* fix linter problem
* Fix review comment
2023-03-03 08:16:33 +00:00
Alex Savchuk
33b4484fcd
fix: github.job property is empty, GITHUB_JOB should be job id ( #1646 )
...
* fix: github.job property is empty, GITHUB_JOB should be job id
fix: github.job property is empty #1621
fix: GITHUB_JOB should be the id not the name #1473
* fix linter problem.
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-27 19:10:31 +00:00
Markus Wolf
943f347327
fix: update output handling for reusable workflows ( #1521 )
...
* fix: map job output for reusable workflows
This fixes the job outputs for reusable workflows. There is
a required indirection. Before this we took the outputs from
all jobs which is not what users express with the workflow
outputs.
* fix: remove double evaluation
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-23 22:34:47 +00:00
ChristopherHX
606fd4bde1
fix: crash malformed composite action ( #1616 )
...
* fix: crash malformed composite action
* Add remote composite action test
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-23 22:16:07 +00:00
ChristopherHX
75baa9dc3b
feat: workflowpattern package ( #1618 )
...
* feat: workflowpattern package
* nolint:gocyclo
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-23 18:21:08 +00:00
R
c28143e1f9
fix: add GITHUB_STEP_SUMMARY ( #1607 )
2023-02-23 15:24:44 +00:00
Josh Soref
bfe9d9f671
fix: tolerate workflow that needs a missing job ( #1595 ) ( #1619 )
...
Change planner functions to return errors
This enables createStages to return `unable to build dependency graph`
Fix PlanEvent to properly report errors relating to events/workflows
2023-02-16 16:41:59 +00:00
ChristopherHX
de558842bb
chore: Remove obsolete Container.UpdateFromPath ( #1631 )
...
* chore: Remove obsolete Container.UpdateFromPath
* remove unused import
2023-02-16 16:11:26 +00:00
Jason Song
32b8839b68
chore: use new style octal ( #1630 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-16 15:34:51 +00:00