{"id":24024761,"url":"https://github.com/cognitedata/code-sign-action","last_synced_at":"2025-04-16T04:22:41.532Z","repository":{"id":56789353,"uuid":"473628784","full_name":"cognitedata/code-sign-action","owner":"cognitedata","description":"This repository contains a GitHub action for code signing on Windows and Linux","archived":false,"fork":false,"pushed_at":"2025-02-14T13:27:15.000Z","size":322,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":48,"default_branch":"main","last_synced_at":"2025-03-29T04:51:14.062Z","etag":null,"topics":["codesign","linux","windows"],"latest_commit_sha":null,"homepage":"","language":null,"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/cognitedata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-24T13:56:58.000Z","updated_at":"2024-08-01T09:10:27.000Z","dependencies_parsed_at":"2022-08-16T08:50:17.122Z","dependency_job_id":"aea5ed08-f1d6-4db1-aec2-991eacae918b","html_url":"https://github.com/cognitedata/code-sign-action","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitedata%2Fcode-sign-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitedata%2Fcode-sign-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitedata%2Fcode-sign-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cognitedata%2Fcode-sign-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cognitedata","download_url":"https://codeload.github.com/cognitedata/code-sign-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249194680,"owners_count":21228034,"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","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":["codesign","linux","windows"],"created_at":"2025-01-08T15:34:44.922Z","updated_at":"2025-04-16T04:22:41.507Z","avatar_url":"https://github.com/cognitedata.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# code-sign-action\n\nThe code-sign-action action integrates with Digicert One and uses SignTool on Windows runners and JSign on Linux runners. It has been tested on `windows-2022`, `ubuntu-20.04` and `ubuntu-22.04` runners.\n\n------------\n\n## Usage\n\n### Environment\n\n- `CERTIFICATE_HOST`: https://clientauth.one.digicert.com\n- `CERTIFICATE_HOST_API_KEY`: An API key created for the GitHub Actions service user in Digicert One.\n- `CERTIFICATE_SHA1_HASH`: SHA1 fingerprint of the code signing certificate.\n- `CLIENT_CERTIFICATE`: Client authentication certificate created for the GitHub Actions service user in Digicert One.(.p12 file)\n- `CLIENT_CERTIFICATE_PASSWORD`: Client authentication certificate password created for the GitHub Actions service user in Digicert One.\n- `KEYPAIR_ALIAS`: Keypair alias value found in the \"Keypair details\" section of the \"Certificates\" page in your KeyLocker dashboard.\n\n### Inputs\n\n- `path-to-binary`: Takes either a file path or a directory path containing the files to be signed.\n\n### Examples\n\n#### Sign a single file on Windows\n\n```yaml\nname: codesign-example-single-file\non:\n  push:\n    branches:\n      - main\n      - 'releases/*'\n\njobs:\n  run-action:\n    runs-on: windows-2022\n    steps:\n      - name: Run the action for a single file\n        env:\n          CERTIFICATE_HOST: ${{ secrets.CODE_SIGNING_CERT_HOST }}\n          CERTIFICATE_HOST_API_KEY: ${{ secrets.CODE_SIGNING_CERT_HOST_API_KEY }}\n          CERTIFICATE_SHA1_HASH: ${{ secrets.CODE_SIGNING_CERT_SHA1_HASH }}\n          CLIENT_CERTIFICATE: ${{ secrets.CODE_SIGNING_CLIENT_CERT }}\n          CLIENT_CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CLIENT_CERT_PASSWORD }}\n          KEYPAIR_ALIAS: ${{ secrets.CODE_SIGNING_KEYPAIR_ALIAS }}\n        uses: cognitedata/code-sign-action/@v3\n        with:\n          path-to-binary: 'test\\test.dll'\n```\n\n#### Sign multiple files on Linux\n\n```yaml\nname: codesign-example-multiple-files\non:\n  pull_request:\n  push:\n    branches:\n      - main\n      - \"releases/*\"\n\njobs:\n  run-action-linux:\n    runs-on: ubuntu-22.04\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v3\n\n      - name: Run the action for multiple files in directory\n        env:\n          CERTIFICATE_HOST: ${{ secrets.CODE_SIGNING_CERT_HOST }}\n          CERTIFICATE_HOST_API_KEY: ${{ secrets.CODE_SIGNING_CERT_HOST_API_KEY }}\n          CERTIFICATE_SHA1_HASH: ${{ secrets.CODE_SIGNING_CERT_SHA1_HASH }}\n          CLIENT_CERTIFICATE: ${{ secrets.CODE_SIGNING_CLIENT_CERT }}\n          CLIENT_CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CLIENT_CERT_PASSWORD }}\n          KEYPAIR_ALIAS: ${{ secrets.CODE_SIGNING_KEYPAIR_ALIAS }}\n        uses: cognitedata/code-sign-action/@v3\n        with:\n          path-to-binary: \"test\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcognitedata%2Fcode-sign-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcognitedata%2Fcode-sign-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcognitedata%2Fcode-sign-action/lists"}