{"id":22268212,"url":"https://github.com/curityio/github-actions-utilities","last_synced_at":"2026-05-05T12:33:49.382Z","repository":{"id":74437488,"uuid":"499523424","full_name":"curityio/github-actions-utilities","owner":"curityio","description":"Resources used for GitHub Actions workflows.","archived":false,"fork":false,"pushed_at":"2023-05-09T17:09:14.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-14T05:59:41.046Z","etag":null,"topics":["github-actions","testing"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curityio.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":"2022-06-03T13:32:44.000Z","updated_at":"2023-04-27T09:50:25.000Z","dependencies_parsed_at":"2024-12-03T11:12:03.002Z","dependency_job_id":"709a998f-a57f-4f72-bf0e-931cfbb0deb8","html_url":"https://github.com/curityio/github-actions-utilities","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curityio/github-actions-utilities","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgithub-actions-utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgithub-actions-utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgithub-actions-utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgithub-actions-utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/github-actions-utilities/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fgithub-actions-utilities/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["github-actions","testing"],"created_at":"2024-12-03T11:11:54.720Z","updated_at":"2026-05-05T12:33:49.365Z","avatar_url":"https://github.com/curityio.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-actions-utilities\n\nUtilities used in GitHub Actions workflows that test the Curity repositories. Some files are useful when running GitHub Actions workflows locally.\n\n## Usage\n\nUsually, the repository will be checked-out in a GitHub Actions workflow step:\n\n```yml\n\n- name: Checkout repository\n  uses: actions/checkout@v3\n  with:\n    repository: curityio/github-actions-utilities\n    path: utils\n\n```\n\n## Running the GitHub Actions Workflow Locally\n\nThe GitHub Actions workflow can be run locally using a tool called [act](https://github.com/nektos/act\u003e). In order to run\nthe workflow you will need:\n\n- Checkout this repository locally.\n- Install the `act` tool.\n- Copy the `secrets.template` file into `.secrets` file in the root folder. Usually you will find the template file in `tests/workflows` directory in the repository that you want to test. Set the correct values in the file.\n- Build the docker container that is used to run the tests locally. You will find the Dockerfile in this repository in\n  the `act` directory. From this directory run:\n\n```bash\n    docker build -t act-ubuntu-for-cypress .\n```\n\n- Create a [Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with read access to public repositories.\n\n- Run the workflow using the built container. From the root of the repository that you want to test run (enter the value of the Personal Access Token in place of `\u003cpat\u003e`)\n\n```bash\n    act -P ubuntu-latest=act-ubuntu-for-cypress -b -s GITHUB_TOKEN=\u003cpat\u003e workflow_dispatch\n```\n\nThe `-b` switch is used to mount the tested repository in the container instead of copying it. Thanks to that, test reports will be available in `tests/cypress/reports`.\n\n### Running Workflows with act When Additional Services Used\n\nNormally, the test workflows are run with the Curity Identity Server started in a docker container. When you run the\nworkflow locally with `act`, the container with the Curity Identity Server is actually started on your development machine,\nnot inside the `act` container. This means that if you start a service inside the `act` container, then the Curity \nIdentity Server might have problems reaching that service. If this is the case, you might have to implement a workaround\nto the workflow. You can start the Curity Identity Server directly in the `act` container, instead of its own docker.\nTo do that, follow these steps:\n\n- Download the Curity Identity Server from https://developer.curity.io/downloads to and unpack it to a directory in the\n  tested repository, e.g. `idsvr`.\n- Copy a license file to `idsvr/etc/init/license/`.\n- Copy the `tests/idsvr/config.xml` file to `idsvr/etc/init/`.\n- If needed, adjust the config file to point to `localhost` instead of any virtual domains.\n- Change the step in `.github/workflows/end-to-end-tests.yaml` that runs the Curity Identity Server container to this command:\n\n```yaml\n  - run: ./idsvr/bin/idsvr \u0026\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fgithub-actions-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fgithub-actions-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fgithub-actions-utilities/lists"}