{"id":23093706,"url":"https://github.com/r0wi/nextcloud-appstore-push-action","last_synced_at":"2025-08-16T10:32:05.076Z","repository":{"id":47716334,"uuid":"295423302","full_name":"R0Wi/nextcloud-appstore-push-action","owner":"R0Wi","description":"Automatically publishes a new app version in the Nextcloud appstore after you created a new Github release","archived":false,"fork":false,"pushed_at":"2025-01-22T19:20:50.000Z","size":66,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T04:51:31.466Z","etag":null,"topics":["appstore","deployment-automation","nextcloud-app","nextcloud-apps"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/R0Wi.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}},"created_at":"2020-09-14T13:23:00.000Z","updated_at":"2025-01-22T19:20:50.000Z","dependencies_parsed_at":"2023-01-11T17:23:03.349Z","dependency_job_id":null,"html_url":"https://github.com/R0Wi/nextcloud-appstore-push-action","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/R0Wi/nextcloud-appstore-push-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0Wi%2Fnextcloud-appstore-push-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0Wi%2Fnextcloud-appstore-push-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0Wi%2Fnextcloud-appstore-push-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0Wi%2Fnextcloud-appstore-push-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/R0Wi","download_url":"https://codeload.github.com/R0Wi/nextcloud-appstore-push-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/R0Wi%2Fnextcloud-appstore-push-action/sbom","scorecard":{"id":116415,"data":{"date":"2025-08-11","repo":{"name":"github.com/R0Wi/nextcloud-appstore-push-action","commit":"cec25fa221c6b2a82701dca2a9455b39f9f7b252"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/R0Wi/nextcloud-appstore-push-action/test.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update-tags.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/R0Wi/nextcloud-appstore-push-action/update-tags.yaml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/test.yaml:17","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yaml:1","Warn: no topLevel permission defined: .github/workflows/update-tags.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T01:23:31.836Z","repository_id":47716334,"created_at":"2025-08-16T01:23:31.837Z","updated_at":"2025-08-16T01:23:31.837Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270701582,"owners_count":24630868,"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-08-16T02:00:11.002Z","response_time":91,"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":["appstore","deployment-automation","nextcloud-app","nextcloud-apps"],"created_at":"2024-12-16T21:53:19.260Z","updated_at":"2025-08-16T10:32:04.790Z","avatar_url":"https://github.com/R0Wi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Upload a new app version to Nextcloud's appstore\nThis Github Action automatically publishes a new app version in the Nextcloud appstore after you created a new Github release.\n\n## Workflow\nThe following workflow can be automated when using this Github Action:\n\n1. Create a new [release](https://docs.github.com/en/github/administering-a-repository/managing-releases-in-a-repository) of your app in Github.\n2. Let a new Github Workflow be triggered which automates the following steps:\n    - Chechout the `tag` version of your new release. \n    - Build a tarball for your app.\n    - Attach the tarball to the Github Release.\n    - Upload a new app version into the Nextcloud appstore referencing your attached tarball. This includes creating a signature and authenticating against Nextcloud's appstore via token (or username and password).\n\n## Prerequisites\n1. **Register** you app in the Nextcloud appstore like described [here](https://nextcloudappstore.readthedocs.io/en/latest/developer.html).\n2. Paste the content of your app's **private key into a new [Github Secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets)** named `APP_PRIVATE_KEY`. This key is later used for signing the new app version before uploading it to the appstore.\n\n3. For **authentication** against the Nextcloud appstore you can use one of the following approaches:\n    1. **Token** (recommended): create a new [Github Secret](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) for your Nextcloud appstore account [token](https://nextcloudappstore.readthedocs.io/en/latest/restapi.html#authentication) named `APPSTORE_TOKEN`. The token can be copied by logging into https://apps.nextcloud.com an then visiting *My account -\u003e API-Token*.\n    2. **Username \u0026 password**: create two [Github Secrets](https://docs.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets) `APPSTORE_USERNAME` and `APPSTORE_PASSWORD` holding your personal login information for the [Nextcloud appstore](https://apps.nextcloud.com). Make sure this user is allowed to create new app releases for you app.\n4. Make sure you are able to build a tarball for your app inside of Github actions. This could be achieved by using an appropriate `Makefile`. Here are two examples:\n* https://github.com/nextcloud/files_photospheres/blob/master/Makefile (without [code signing](https://docs.nextcloud.com/server/latest/admin_manual/issues/code_signing.html))\n* https://github.com/nextcloud/spreed/blob/b5198c2d0d9cdc2c7c0e410867d2ec84336e23a6/Makefile (with [code signing](https://docs.nextcloud.com/server/latest/admin_manual/issues/code_signing.html))\n\n## Usage\nIn general you'll have to create a new `.yml`-file in your app's repository inside of `.github/workflows` (for example `.github/workflows/build_release.yml`) to use this Github Action. The following sections list a few useful examples on how you can combine this Action with others to automate your workflow. All samples can also be found in the [`examples`](examples) directory of this repository.\n\n### Example without [code signing](https://docs.nextcloud.com/server/latest/admin_manual/issues/code_signing.html)\nThe following example shows how you can use this Github Action with your Nextcloud Appstore token after a new Github Release was created:\n\n```yaml\nname: Build and publish app release\n\non:\n  release:\n      types: [published]\n\nenv:\n  APP_NAME: workflow_ocr\n\njobs:\n  build_and_publish:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v2\n        with:\n          path: ${{ env.APP_NAME }}\n      - name: Run build\n        run: cd ${{ env.APP_NAME }} \u0026\u0026 make appstore\n      - name: Upload app tarball to release\n        uses: svenstaro/upload-release-action@v2\n        id: attach_to_release\n        with:\n          repo_token: ${{ secrets.GITHUB_TOKEN }}\n          file: ${{ env.APP_NAME }}/build/artifacts/appstore/${{ env.APP_NAME }}.tar.gz\n          asset_name: ${{ env.APP_NAME }}.tar.gz \n          tag: ${{ github.ref }}\n          overwrite: true\n      - name: Upload app to Nextcloud appstore\n        uses: R0Wi/nextcloud-appstore-push-action@v1\n        with:\n          app_name: ${{ env.APP_NAME }}\n          appstore_token: ${{ secrets.APPSTORE_TOKEN }}\n          download_url: ${{ steps.attach_to_release.outputs.browser_download_url }}\n          app_private_key: ${{ secrets.APP_PRIVATE_KEY }}\n          nightly: ${{ github.event.release.prerelease }}\n\n```\n\n### Input variables\n| Name              | Description                                                                                 | Default | Possible values | Required |\n|-------------------|---------------------------------------------------------------------------------------------|---------|-----------------|----------|\n| `app_name`         | The id of your Nextcloud app                                                                | -       | `string`        | `true`   |\n| `appstore_token`    | A valid access token to upload a new version of your app into Nextcloud appstore            | -       | `string`        | `false`* |\n| `appstore_username` | Username for Nextcloud appstore                                                             | -       | `string`        | `false`* |\n| `appstore_password` | Password for Nextcloud appstore                                                             | -       | `string`        | `false`* |\n| `download_url`      | The download url of you app tarball                                                         | -       | `string`        | `true`   |\n| `app_private_key`   | The private key string of you app to sign the new release. Usually stored in Github Secrets | -       | `string`        | `true`   |\n| `nightly`           | Controls if the app will be published as nightly into the Nextcloud appstore                | `false` | `true`, `false` | `false`  |\n\n\u003e *Either `appstore_token` or `appstore_username` **and** `appstore_password` must be set.\n\n### Output variables\nThere are currently no output variables.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr0wi%2Fnextcloud-appstore-push-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr0wi%2Fnextcloud-appstore-push-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr0wi%2Fnextcloud-appstore-push-action/lists"}