{"id":19420164,"url":"https://github.com/actions-go/toolkit","last_synced_at":"2025-07-29T04:08:25.734Z","repository":{"id":38105582,"uuid":"234444501","full_name":"actions-go/toolkit","owner":"actions-go","description":"A go implementation of https://github.com/actions/toolkit","archived":false,"fork":false,"pushed_at":"2024-01-24T04:06:52.000Z","size":99,"stargazers_count":13,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T14:43:30.974Z","etag":null,"topics":["actions","automation","cd","ci","github","github-actions","golang","golang-package"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-17T01:21:13.000Z","updated_at":"2024-11-24T22:24:33.000Z","dependencies_parsed_at":"2023-02-05T07:01:16.678Z","dependency_job_id":"9ec9287b-d5ba-4a28-9069-a4510b41cc63","html_url":"https://github.com/actions-go/toolkit","commit_stats":null,"previous_names":["tjamet/go-github-action-toolkit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/actions-go/toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-go%2Ftoolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-go%2Ftoolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-go%2Ftoolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-go%2Ftoolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-go","download_url":"https://codeload.github.com/actions-go/toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-go%2Ftoolkit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267626944,"owners_count":24117708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","automation","cd","ci","github","github-actions","golang","golang-package"],"created_at":"2024-11-10T13:21:30.385Z","updated_at":"2025-07-29T04:08:25.712Z","avatar_url":"https://github.com/actions-go.png","language":"Go","readme":"\n\u003c!--\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/actions-go/toolkit\"\u003e\u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/actions-go/toolkit/workflows/ci/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n--\u003e\n\n[![GoDoc](https://godoc.org/github.com/actions-go/toolkit?status.svg)](https://godoc.org/github.com/actions-go/toolkit)\n\n## GitHub Actions Go (aka golang) Toolkit\n\nThe GitHub Actions Go ToolKit provides a set of packages to make creating actions easier.\n\nThis toolkit is a pure go port of the official [@actions/toolkit](https://github.com/actions/toolkit)\n\n\u003cbr/\u003e\n\u003ch3 align=\"center\"\u003eGet started with the \u003ca href=\"https://github.com/tjamet/go-action-template\"\u003ego-action-template\u003c/a\u003e!\u003c/h3\u003e\n\u003cbr/\u003e\n\n## Packages\n\n:heavy_check_mark: [github.com/actions-go/toolkit/core](core) \n\n[![GoDoc](https://godoc.org/github.com/actions-go/toolkit/core?status.svg)](https://godoc.org/github.com/actions-go/toolkit/core)\n\nProvides functions for inputs, outputs, results, logging, secrets and variables. Read more [here](https://godoc.org/github.com/actions-go/toolkit/core)\n\n```bash\n$ go get github.com/actions-go/core\n```\n\u003cbr/\u003e\n\n:hammer: [github.com/actions-go/toolkit/cache](cache) \n\n[![GoDoc](https://godoc.org/github.com/actions-go/toolkit/cache?status.svg)](https://godoc.org/github.com/actions-go/toolkit/cache)\n\nProvides functions for downloading and caching tools.  e.g. setup-* actions. Read more [here](https://godoc.org/github.com/actions-go/toolkit/cache)\n\n```bash\n$ go get github.com/actions-go/cache\n```\n\u003cbr/\u003e\n\n:octocat: [github.com/actions-go/toolkit/github](github) \n\n[![GoDoc](https://godoc.org/github.com/actions-go/toolkit/github?status.svg)](https://godoc.org/github.com/actions-go/toolkit/github)\n\nProvides an authenticated GitHub client hydrated with the context that the current action is being run in. Read more [here](https://godoc.org/github.com/actions-go/toolkit/github)\n\n```bash\n$ go get github.com/actions-go/github\n```\n\u003cbr/\u003e\n\n## Creating an Action with the Toolkit\n\n:question: [Choosing an action type](https://github.com/actions/toolkit/docs/action-types.md)\n\nOutlines the differences and why you would want to create a JavaScript or a container based action.\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n:curly_loop: [Versioning](https://github.com/actions/toolkit/docs/action-versioning.md)\n\nActions are downloaded and run from the GitHub graph of repos.  This contains guidance for versioning actions and safe releases.\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n:warning: [Problem Matchers](https://github.com/actions/toolkit/docs/problem-matchers.md)\n\nProblem Matchers are a way to scan the output of actions for a specified regex pattern and surface that information prominently in the UI.\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\u003ch3\u003e\u003ca href=\"https://github.com/actions-go/hello-world\"\u003eHello World Go Action\u003c/a\u003e\u003c/h3\u003e\n\n\nIllustrates how to create a simple hello world javascript action.\n\n```go\nimport \"github.com/actions-go/toolkit/core\"\n\nfunc main() {\n    whoToGreet := core.GetInput(\"who-to-greet\")\n    fmt.Println(\"Hello\", whoToGreet)\n}\n```\n\n\u003ch3\u003e\u003ca href=\"https://github.com/actions/hello-world-javascript-action\"\u003eHello World JavaScript Action\u003c/a\u003e\u003c/h3\u003e\n\nIllustrates how to create a simple hello world javascript action.\n\n```javascript\n...\n  const nameToGreet = core.getInput('who-to-greet');\n  console.log(`Hello ${nameToGreet}!`);\n...\n```\n\u003cbr/\u003e\n\n\u003ch3\u003e\u003ca href=\"https://github.com/actions/javascript-action\"\u003eJavaScript Action Walkthrough\u003c/a\u003e\u003c/h3\u003e\n \nWalkthrough and template for creating a JavaScript Action with tests, linting, workflow, publishing, and versioning.\n\n```javascript\nasync function run() {\n  try { \n    const ms = core.getInput('milliseconds');\n    console.log(`Waiting ${ms} milliseconds ...`)\n    ...\n```\n```javascript\nPASS ./index.test.js\n  ✓ throws invalid number \n  ✓ wait 500 ms \n  ✓ test runs\n\nTest Suites: 1 passed, 1 total    \nTests:       3 passed, 3 total\n```\n\u003cbr/\u003e\n\n\u003ch3\u003e\u003ca href=\"https://github.com/actions/typescript-action\"\u003eTypeScript Action Walkthrough\u003c/a\u003e\u003c/h3\u003e\n\nWalkthrough creating a TypeScript Action with compilation, tests, linting, workflow, publishing, and versioning.\n\n```javascript\nimport * as core from '@actions/core';\n\nasync function run() {\n  try {\n    const ms = core.getInput('milliseconds');\n    console.log(`Waiting ${ms} milliseconds ...`)\n    ...\n```\n```javascript\nPASS ./index.test.js\n  ✓ throws invalid number \n  ✓ wait 500 ms \n  ✓ test runs\n\nTest Suites: 1 passed, 1 total    \nTests:       3 passed, 3 total\n```\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n\u003ch3\u003e\u003ca href=\"https://github.com/actions/toolkit/docs/container-action.md\"\u003eDocker Action Walkthrough\u003c/a\u003e\u003c/h3\u003e\n\nCreate an action that is delivered as a container and run with docker.\n\n```docker\nFROM alpine:3.10\nCOPY LICENSE README.md /\nCOPY entrypoint.sh /entrypoint.sh\nENTRYPOINT [\"/entrypoint.sh\"]\n```\n\u003cbr/\u003e\n\n\u003ch3\u003e\u003ca href=\"https://github.com/actions/container-toolkit-action\"\u003eDocker Action Walkthrough with Octokit\u003c/a\u003e\u003c/h3\u003e\n\nCreate an action that is delivered as a container which uses the toolkit.  This example uses the GitHub context to construct an Octokit client.\n\n```docker\nFROM node:slim\nCOPY . .\nRUN npm install --production\nENTRYPOINT [\"node\", \"/lib/main.js\"]\n```\n```javascript\nconst myInput = core.getInput('myInput');\ncore.debug(`Hello ${myInput} from inside a container`);\n\nconst context = github.context;\nconsole.log(`We can even get context data, like the repo: ${context.repo.repo}`)    \n```\n\u003cbr/\u003e\n\n\u003c!--\n## Contributing\n\nWe welcome contributions.  See [how to contribute](docs/contribute.md).\n\n## Code of Conduct\n\nSee [our code of conduct](CODE_OF_CONDUCT.md).\n--\u003e","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-go%2Ftoolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-go%2Ftoolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-go%2Ftoolkit/lists"}