{"id":22408991,"url":"https://github.com/iloveitaly/github-action-localias","last_synced_at":"2025-10-10T19:04:52.122Z","repository":{"id":266348118,"uuid":"898107266","full_name":"iloveitaly/github-action-localias","owner":"iloveitaly","description":"Setup localias domains on GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-07-14T21:09:21.000Z","size":55,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T14:49:58.706Z","etag":null,"topics":["actions","github","localias","ssl"],"latest_commit_sha":null,"homepage":"https://github.com/iloveitaly/github-action-localias","language":"Shell","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/iloveitaly.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null},"funding":{"github":["iloveitaly"]}},"created_at":"2024-12-03T19:55:54.000Z","updated_at":"2025-07-14T21:09:32.000Z","dependencies_parsed_at":"2025-04-13T11:11:07.793Z","dependency_job_id":"c6f58a8a-973a-4ba2-8b05-4baed984a4b8","html_url":"https://github.com/iloveitaly/github-action-localias","commit_stats":null,"previous_names":["iloveitaly/github-action-localias"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/iloveitaly/github-action-localias","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fgithub-action-localias","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fgithub-action-localias/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fgithub-action-localias/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fgithub-action-localias/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iloveitaly","download_url":"https://codeload.github.com/iloveitaly/github-action-localias/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iloveitaly%2Fgithub-action-localias/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005027,"owners_count":26083825,"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-10-10T02:00:06.843Z","response_time":62,"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","github","localias","ssl"],"created_at":"2024-12-05T12:06:12.099Z","updated_at":"2025-10-10T19:04:52.105Z","avatar_url":"https://github.com/iloveitaly.png","language":"Shell","funding_links":["https://github.com/sponsors/iloveitaly"],"categories":[],"sub_categories":[],"readme":"# Localias on GitHub Actions\n\nThis GitHub Action installs and configures [Localias](https://github.com/peterldowns/localias) to enable HTTPS domains for CI tests. It handles certificate installation and system configuration to ensure proper HTTPS functionality in testing environments.\n\n[This was extracted from this python repo](https://github.com/iloveitaly/python-starter-template), if you are looking for an example of how to integrate this into your project.\n\n## Features\n\n- Installs and runs Localias as a daemon\n- Configures system CA certificates\n- Sets up NSS database for Chrome/Chromium compatibility (for playright, cypress, etc)\n- Validates HTTPS functionality with curl tests based on a domain in `.localias.yml`\n\n## Usage\n\n\n```yaml\nsteps:\n  - uses: iloveitaly/github-action-localias@master\n```\n\n## What it does\n\n1. Installs Localias if not present\n2. Starts Localias daemon\n3. Waits for self-signed certificate generation\n4. Refreshes system CA certificates\n5. Creates and configures NSS database for Chrome/Chromium\n6. Validates HTTPS setup with curl tests across all domains in `.localias.yml`\n\n## Development Notes\n\nGetting this working was challenging:\n\n* You'll see an error message (with a typo) `not NSS security databases found` even if the NSS DB exists. This occurs\n  even under `sudo -E` and it really shouldn't [because the directory it references definitely exists](https://github.com/smallstep/truststore/blob/d71bcdef66e239112d877b3e531e1011795efdf7/truststore_nss.go#L16).\n* `curl` will succeed if retried multiple times. I have no idea why this is happening. There must be some CA store refresh process which runs async. Rather than trying to understand what is going on, we just retry a handful of times.\n  * Note that this happens on each unique domain. So it's not related to the cert cache globally, there's some per-host cert system that needs to be warmed up. This is why we iterate over each domain.\n* Installing `libnss3-tools` does not initialize the NSS DB. You must do this manually.\n* `curl` does not use the NSS DB but Chromium does.\n* `sudo localias debug cert --print | sudo tee -a /etc/ssl/certs/ca-certificates.crt` executes correctly with caddy, this is not necessary.\n\n### Helpful links\n\n* https://ray.run/questions/how-do-i-fix-ssl-errors-when-using-playwright-and-google-chrome-to-access-a-site-on-localhost-3000\n* https://medium.com/@mudit94/configuring-https-certificates-in-playwright-932ca3fc9f06\n* https://superuser.com/questions/1083766/how-do-i-deal-with-neterr-cert-authority-invalid-in-chrome\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filoveitaly%2Fgithub-action-localias","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Filoveitaly%2Fgithub-action-localias","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Filoveitaly%2Fgithub-action-localias/lists"}