{"id":26063624,"url":"https://github.com/appatalks/libsodium_secrets_update","last_synced_at":"2026-05-14T22:42:26.732Z","repository":{"id":280055291,"uuid":"940264257","full_name":"appatalks/libsodium_secrets_update","owner":"appatalks","description":"Use Libsodium library for C# / .NET bindings update GitHub repository secrets","archived":false,"fork":false,"pushed_at":"2025-05-07T22:54:23.000Z","size":51,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-06T04:31:01.985Z","etag":null,"topics":["actions","c","libsodium","net","secrets"],"latest_commit_sha":null,"homepage":"","language":null,"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/appatalks.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,"zenodo":null}},"created_at":"2025-02-27T22:04:29.000Z","updated_at":"2025-05-07T22:54:21.000Z","dependencies_parsed_at":"2025-07-19T23:41:30.488Z","dependency_job_id":null,"html_url":"https://github.com/appatalks/libsodium_secrets_update","commit_stats":null,"previous_names":["appatalks/gh_nsec_secrets_update","appatalks/libsodium_secrets_update"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/appatalks/libsodium_secrets_update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Flibsodium_secrets_update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Flibsodium_secrets_update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Flibsodium_secrets_update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Flibsodium_secrets_update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appatalks","download_url":"https://codeload.github.com/appatalks/libsodium_secrets_update/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appatalks%2Flibsodium_secrets_update/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33046281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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","c","libsodium","net","secrets"],"created_at":"2025-03-08T17:17:28.809Z","updated_at":"2026-05-14T22:42:26.716Z","avatar_url":"https://github.com/appatalks.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!CAUTION]\n\u003e Proof-of-Concept\n\u003e Read more here for insight: [libsodium investigation](https://github.com/appatalks/gh_nsec_secrets_update/issues/1)\n\n## Use Libsodium directly with `P/Invoke` method to Encrypt and update GitHub Repository Secret \n\n### Repository Secret Update Workflow\n\nThis is a GitHub Actions workflow that updates a repository secret using C# and .NET bindings.\n\nProof-of-concept to update a secret using `libsodium` rather than [Sodium.Core](https://github.com/ektrah/libsodium-core) as it is no longer maintained, and a possible candidate for a replacement to GitHub's [current recommendation](https://docs.github.com/en/rest/guides/encrypting-secrets-for-the-rest-api?apiVersion=2022-11-28#example-encrypting-a-secret-using-c).\n\n\u003e [!NOTE]\n\u003e - *`P/Invoke` with Libsodium*: The project uses [P/Invoke to call native Libsodium functions](https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke) (`sodium_init` and `crypto_box_seal`) from C#.\n\u003e - *Sealed Box Encryption*: The `crypto_box_seal` method encrypts data using the recipient's public key without needing a sender key pair.\n\n## How to Use\n\n0. Use this Actions Workflow: [libsodium-dev-secret-update.yml](https://github.com/appatalks/gh_nsec_secrets_update/blob/main/libsodium-dev-secret-update.yml)\n2. Trigger the workflow manually.\n3. Provide the following inputs:\n   - **secret:** The new or updated Secret\n   - **pat_token:** A Personal Access Token with repo permissions.\n   - **secret_name:** The name of the repository secret to update.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappatalks%2Flibsodium_secrets_update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappatalks%2Flibsodium_secrets_update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappatalks%2Flibsodium_secrets_update/lists"}