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
Jason Song
1b88ccb803
fix: don't override env ( #1629 )
2023-02-16 15:16:46 +00:00
sitiom
41da84cbb5
ci: add Winget Releaser workflow ( #1623 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-13 17:59:19 +00:00
Aidan
e3667a54fe
Pass dockerfile to build executor ( #1606 )
...
This allows testing actions with non standard dockerfile names
Signed-off-by: Aidan Jensen <aidan@artificial.com>
2023-02-08 17:14:43 +00:00
dependabot[bot]
f81e2d6843
build(deps): bump github.com/docker/cli from 23.0.0-rc.1+incompatible to 23.0.0+incompatible ( #1611 )
...
* build(deps): bump github.com/docker/cli
Bumps [github.com/docker/cli](https://github.com/docker/cli ) from 23.0.0-rc.1+incompatible to 23.0.0+incompatible.
- [Release notes](https://github.com/docker/cli/releases )
- [Commits](https://github.com/docker/cli/compare/v23.0.0-rc.1...v23.0.0 )
---
updated-dependencies:
- dependency-name: github.com/docker/cli
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* update-test
* update test
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2023-02-06 12:33:42 +00:00
dependabot[bot]
bc65473880
build(deps): bump megalinter/megalinter from 6.18.0 to 6.19.0 ( #1610 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.18.0 to 6.19.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.18.0...v6.19.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-02-06 03:05:59 +00:00
ChristopherHX
02e21de560
refactor: GITHUB_ENV command / remove env.PATH ( #1503 )
...
* fix: GITHUB_ENV / PATH handling
* apply workaround
* add ctx to ApplyExtraPath
* fix: Do not leak step env in composite
See https://github.com/nektos/act/pull/1585 for a test
* add more tests
---------
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-04 13:35:13 +00:00
Aidan
89a74e2a74
Update max container name length ( #1597 )
...
* Update max container name length
Signed-off-by: Aidan Jensen <aidan@artificial.com>
* Use hashed name instead to prevent conflicts
Signed-off-by: Aidan Jensen <aidan@artificial.com>
---------
Signed-off-by: Aidan Jensen <aidan@artificial.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-03 19:54:19 +00:00
Shubh Bapna
e8f2d13c43
feat: allow overriding of GITHUB_
env variables ( #1582 )
...
* allow overriding of GITHUB_ env variables
* bug fix for overriding env vars with empty string
* revert step.go
* refactor github_context to prevent lint failures. added more setters
* added ability to override github env variables
* handled base and head ref
2023-02-03 19:35:49 +00:00
Aidan
2164524d62
Docker build fixes ( #1596 )
...
- Join relative path and split dockerfile off to get context
Signed-off-by: Aidan Jensen <aidan@artificial.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-02-03 09:07:16 +00:00
ChristopherHX
596c0899f5
fix: Apply forcePull only for prebuild docker actions ( #1599 )
2023-02-02 17:24:35 +00:00
Casey Lee
4028d0c1ad
feat: cache notices to reduce frequency of upgrade notifications ( #1592 )
...
* feat: cache notices to reduce frequency of upgrade notifications
* fix: reduce WriteFile permissions
* fix: remove reference to deprecated lib
* fix: handle HTTP status 304
2023-02-01 16:54:57 -08:00
Casey Lee
4510ea8edd
chore: fix release script to trigger gh-act
2023-01-31 18:55:22 -08:00
dependabot[bot]
2969fb1f4b
build(deps): bump golangci/golangci-lint-action from 3.3.1 to 3.4.0 ( #1590 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.3.1...v3.4.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
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-01-30 02:26:24 +00:00
R
a54e2029af
cI: make stalebot less annoying ( #1587 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-29 16:44:53 +00:00
ChristopherHX
4dd6cc3986
test: Do not leak step env in composite ( #1585 )
...
* test: Do not leak step env in composite
To prevent merging regressions.
* Update runner_test.go
2023-01-29 14:47:56 +00:00
ChristopherHX
97fb7ba580
feat: step summary of test results ( #1580 )
...
* feat: step summary of test results
* fix: indent style
* fix: handle failed tests
* fix upload / create a logs artifact
* Update checks.yml
* fix: always upload logs
* fix: run success
* Move steps into a composite action
* use args and not the hardcoded ones
* format composite action
* format
2023-01-25 08:14:51 +00:00
dependabot[bot]
2e6ebbac55
build(deps): bump actions/github-script from 5 to 6 ( #1572 )
...
Bumps [actions/github-script](https://github.com/actions/github-script ) from 5 to 6.
- [Release notes](https://github.com/actions/github-script/releases )
- [Commits](https://github.com/actions/github-script/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-23 02:56:38 +00:00
Casey Lee
d70ed0dbbf
chore: update docs for installing act as GH CLI extension
2023-01-20 10:22:58 -08:00
Casey Lee
a34ad7e648
feat: release extension
2023-01-20 10:13:18 -08:00
Casey Lee
5b30187a52
feat: release extension
2023-01-20 10:11:34 -08:00
Casey Lee
d5753c760d
feat: release extension
2023-01-20 10:10:20 -08:00
ChristopherHX
06249a9225
refactor: pull and rebuild docker by default ( #1569 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-20 15:46:43 +00:00
Markus Wolf
67bb697055
feat: add remote reusable workflows ( #1525 )
...
* feat: add remote reusable workflows
This changes adds cloning of a remote repository to
run a workflow included in it.
Closes #826
* fix: defer plan creation until clone is done
We need wait for the full clone (and only clone once)
before we start to plan the execution for a remote workflow
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-19 20:49:11 +00:00
Yoshiaki Yoshida
b59e157409
Fixed auto-generated platform configuration with Micro size image ( #1566 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-19 06:49:16 +00:00
Alexandre Lavigne
aeebe9f1d5
Feature/allow worktrees ( #1530 )
...
* Use go-git to find remote URL
* Use go-git package to resolve HEAD revision (commit sha1)
* Use go-git to find checked-out reference
* Remove unused functions
2023-01-19 06:29:23 +00:00
Casey Lee
f70639d09e
fix: update artifact server to address GHSL-2023-004 ( #1565 )
2023-01-16 21:01:54 +00:00
dependabot[bot]
c282c7df54
build(deps): bump github.com/moby/buildkit from 0.10.6 to 0.11.0 ( #1563 )
...
* build(deps): bump github.com/moby/buildkit from 0.10.6 to 0.11.0
Bumps [github.com/moby/buildkit](https://github.com/moby/buildkit ) from 0.10.6 to 0.11.0.
- [Release notes](https://github.com/moby/buildkit/releases )
- [Commits](https://github.com/moby/buildkit/compare/v0.10.6...v0.11.0 )
---
updated-dependencies:
- dependency-name: github.com/moby/buildkit
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: use new patternmatcher.Matches
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Casey Lee <caseypl@amazon.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-16 17:26:22 +00:00
Robin Breathe
cf233000b5
fix: allow override of artifact server bind address ( #1560 )
...
* Prior to this change, the artifact server always binds to the detected
"outbound IP", breaks functionality when that IP is unroutable.
For example, Zscaler assigns the host a local CGNAT address,
100.64.0.1, which is unreachable from Docker Desktop.
* Add the `--artifact-server-addr` flag to allow override of the address
to which the artifact server binds, defaulting to the existing
behaviour.
Fixes : #1559
2023-01-16 14:12:20 +00:00
Casey Lee
e83ef12e1b
feat: add check for newer versions ( #1562 )
...
* feat: add check for newer versions
* fix: support JSON logger and rever updates to go.mod
* fix: keep version updated in source code
* fix: lint errors
* fix: revert go.*
2023-01-15 10:30:41 +00:00
Shubh Bapna
409d161ed1
Input ( #1524 )
...
* added input flags
* added input as part of the action event and added test cases
* updated readme
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2023-01-13 19:28:17 +00:00
ChristopherHX
f6f191d9e0
refactor: remove docker image list reference filter ( #1501 )
...
* refactor: remove docker reference filter
* make it work
* solve logic failure
* Another mistake
* another one
* revert signature of ImageExistsLocally
It is better to keep two return values
2023-01-13 17:52:54 +00:00
ChristopherHX
7e25783091
fix: add-matcher fails github workflow ( #1532 )
...
* fix: add-matcher fails github workflow
* make linter happy
2023-01-13 17:01:40 +00:00
Björn Brauer
79833c689f
feat: add support for building docker actions with private registries ( #1557 )
...
This commit adds a new `LoadDockerAuthConfigs` function, which loads all
registry auths that are configured on the host and sends them with the build
command to the docker daemon.
This is needed in case act builds a docker action and the images referenced in
that docker action are located on private registries or otherwise require
authentication (e.g. to get a higher rate limit).
The code is adapted from how the docker cli works:
257ff41304/cli/command/image/build.go (L323-L332)
Co-authored-by: Markus Wolf <mail@markus-wolf.de>
Co-authored-by: Markus Wolf <mail@markus-wolf.de>
2023-01-12 21:29:30 +00:00
ChristopherHX
ea8ae90674
feat: Allow building without docker support ( #1507 )
...
* feat: Allow building without docker support
* fix macos build tag
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-10 22:08:57 +00:00
ChristopherHX
fd250664e3
fix: extra path lost in composite actions ( #1531 )
...
* test: define test case of path issues
Test case for #1528
* test: add multi arch grep
* fix: Always use current ExtraPath
* replace setup-node with run step
* Update push.yml
* yaml mistake
Co-authored-by: Markus Wolf <mail@markus-wolf.de>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-10 21:55:05 +00:00
Markus Wolf
21a2eb0d83
test: make sure workflow_call is not a github event calling our workflow ( #1520 )
...
Since reusable workflows are defining inputs and ouputs using the
on.workflow_call syntax, this could also be triggered by a workflow_call
event. That event does not exist within GitHub and we should make
sure our worklow is not called by that kind of 'synthetic' event.
See https://github.com/nektos/act/pull/1423/files/74da5b085c0c4d08c5e5bf53501e555cb585b26c#r1042413431
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-10 21:43:12 +00:00
Markus Wolf
f4c69c8b84
fix: preserve job result state in case of failure ( #1519 )
...
* fix: preserve job result state in case of failure
There is just one job field for the job result. This is also true for
matrix jobs. We need to preserve the failure state of a job to
have the whole job failing in case of one permuation of the matrix failed.
Closes #1518
* test: remove continue-on-error on job level
This feature is not yet supported by act and if implemented
would make this test invalid
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-01-10 21:31:12 +00:00
dependabot[bot]
bc22ccbaef
build(deps): bump megalinter/megalinter from 6.17.0 to 6.18.0 ( #1550 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.17.0 to 6.18.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.17.0...v6.18.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-10 21:16:52 +00:00
dependabot[bot]
799b296ed8
build(deps): bump megalinter/megalinter from 6.16.0 to 6.17.0 ( #1540 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.16.0 to 6.17.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.16.0...v6.17.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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-02 02:43:57 +00:00
dependabot[bot]
d0a51b569b
build(deps): bump megalinter/megalinter from 6.15.0 to 6.16.0 ( #1534 )
...
Bumps [megalinter/megalinter](https://github.com/megalinter/megalinter ) from 6.15.0 to 6.16.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.15.0...v6.16.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>
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>
2022-12-26 02:28:46 +00:00
dependabot[bot]
a69bd3578e
build(deps): bump actions/stale from 6 to 7 ( #1535 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 6 to 7.
- [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/v6...v7 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-26 02:13:17 +00:00
ChristopherHX
691dafd7e7
revert: deprecation of containerArchitecture ( #1514 )
...
* fix: ci snaphot job
* revert: deprecation of containerArchitecture
This option isn't part of parsed docker cli flags
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-19 21:24:05 +00:00
dependabot[bot]
972bded7a2
build(deps): bump goreleaser/goreleaser-action from 3 to 4 ( #1515 )
...
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action ) from 3 to 4.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases )
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-19 15:46:21 +00:00
ChristopherHX
f3490ecaf7
fix: align runner.os / runner.arch to known values ( #1510 )
...
* fix: align runner.os / runner.arch to known values
* .
* .
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-12-19 14:58:55 +00:00