{"id":28024553,"url":"https://github.com/okteto/deploy-preview","last_synced_at":"2026-05-07T12:01:51.507Z","repository":{"id":38084232,"uuid":"383419547","full_name":"okteto/deploy-preview","owner":"okteto","description":"Github action to create a preview env in Okteto as part of your automated development workflow","archived":false,"fork":false,"pushed_at":"2026-04-08T11:02:31.000Z","size":191,"stargazers_count":2,"open_issues_count":7,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-12T01:08:04.368Z","etag":null,"topics":["cloud-computing","github-actions","kubernetes","microservices","okteto"],"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/okteto.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-06T09:52:14.000Z","updated_at":"2026-04-08T11:02:27.000Z","dependencies_parsed_at":"2023-11-07T12:28:01.128Z","dependency_job_id":"31f73c69-945f-4a5d-8d9b-1a870411a2bf","html_url":"https://github.com/okteto/deploy-preview","commit_stats":{"total_commits":106,"total_committers":10,"mean_commits":10.6,"dds":0.5471698113207547,"last_synced_commit":"0b709dab0ba9c0d4beff70bc40885fb7d98a47d0"},"previous_names":[],"tags_count":164,"template":false,"template_full_name":null,"purl":"pkg:github/okteto/deploy-preview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okteto%2Fdeploy-preview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okteto%2Fdeploy-preview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okteto%2Fdeploy-preview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okteto%2Fdeploy-preview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okteto","download_url":"https://codeload.github.com/okteto/deploy-preview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okteto%2Fdeploy-preview/sbom","scorecard":{"id":704263,"data":{"date":"2025-08-11","repo":{"name":"github.com/okteto/deploy-preview","commit":"a57175652030b1f5fbd05a35c10b8d740f0b021d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Maintained","score":5,"reason":"7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 4/30 approved changesets -- score normalized to 1","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":-1,"reason":"No tokens found","details":null,"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":"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: Apache License 2.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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1","Warn: containerImage not pinned by hash: Dockerfile:3","Warn: containerImage not pinned by hash: Dockerfile:12: pin your Docker image by updating ruby:3-slim-buster to ruby:3-slim-buster@sha256:39ace3595d76534b71e2db93e45ff018e3dffb0dfd0a137803430dd65cac17a0","Info:   0 out of   3 containerImage 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":"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":"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":"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":"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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 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"}}]},"last_synced_at":"2025-08-22T06:03:21.247Z","repository_id":38084232,"created_at":"2025-08-22T06:03:21.248Z","updated_at":"2025-08-22T06:03:21.248Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32736582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cloud-computing","github-actions","kubernetes","microservices","okteto"],"created_at":"2025-05-11T02:16:35.539Z","updated_at":"2026-05-07T12:01:51.501Z","avatar_url":"https://github.com/okteto.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Actions for Okteto\n\n## Automate your development workflows using Github Actions and Okteto\n\nGitHub Actions gives you the flexibility to build automated software development workflows. With GitHub Actions for Okteto you can create workflows to build, deploy and update your applications in [Okteto](https://okteto.com).\nFollow [this tutorial](https://okteto.com/docs/cloud/preview-environments/preview-environments-github/) for a full preview environment configuration sample.\n\nTry Okteto for free for 30 days, no credit card required. [Start your 30-day trial now](https://www.okteto.com/free-trial/)!\n\n## Github Action for Creating a Preview environment in Okteto\n\nYou can use this action to create a preview environment in Okteto as part of your automated development workflow.\n\n## Inputs\n\n### `name`\n\n**Required**  The name of the Okteto preview environment to create.\n\n### `timeout`\n\nThe length of time to wait for completion. Values should contain a corresponding time unit e.g. 1s, 2m, 3h. If not specified it will use `5m`.\n\n### `variables`\n\nA list of variables to be used by the pipeline. If several variables are present, they should be separated by commas e.g. VAR1=VAL1,VAR2=VAL2,VAR3=VAL3.\n\n### `file`\n\nRelative path within the repository to the manifest file (default to okteto-pipeline.yaml or .okteto/okteto-pipeline.yaml).\n\n### `branch`\n\nThe branch to use for the preview environment (defaults to the branch that triggered the action).\n\n### `log-level`\n\nLog level used. Supported values are: `debug`, `info`, `warn`, `error`. (defaults to `warn`)\n\n## Environment Variables\n\nIf the `GITHUB_TOKEN` environment variable is set, this action will automatically post a comment on the Pull Request that triggered it, including the preview environment URL and its available endpoints.\n\n## Example usage\n\nThis example runs the context action and then creates a preview environment.\n\n```yaml\n# File: .github/workflows/workflow.yml\non: [push]\n\nname: example\n\nconcurrency:\n  # more info here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: false\n\njobs:\n  devflow:\n    runs-on: ubuntu-latest\n    steps:\n    - name: Context\n      uses: okteto/context@latest\n      with:\n        url: https://okteto.example.com\n        token: ${{ secrets.OKTETO_TOKEN }}\n\n    - name: \"Deploy the preview environment\"\n      uses: okteto/deploy-preview@latest\n      env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n      with:\n        name: dev-previews-${{ github.event.number }}\n```\n\n## Advanced usage\n\n### Custom Certification Authorities or Self-signed certificates\n\nYou can specify a custom certificate authority or a self-signed certificate by setting the `OKTETO_CA_CERT` environment variable. When this variable is set, the action will install the certificate in the container, and then execute the action.\n\nUse this option if you're using a private Certificate Authority or a self-signed certificate in your [Okteto SH](https://www.okteto.com/docs/self-hosted/) instance.  We recommend that you store the certificate as an [encrypted secret](https://docs.github.com/en/actions/reference/encrypted-secrets), and that you define the environment variable for the entire job, instead of doing it on every step.\n\n\n```yaml\n# File: .github/workflows/workflow.yml\non: [push]\n\nname: example\n\nconcurrency:\n  # more info here: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: false\n\njobs:\n  devflow:\n    runs-on: ubuntu-latest\n    env:\n      OKTETO_CA_CERT: ${{ secrets.OKTETO_CA_CERT }}\n\n    steps:\n    - name: Context\n      uses: okteto/context@latest\n      with:\n        url: https://okteto.example.com\n        token: ${{ secrets.OKTETO_TOKEN }}\n\n    - name: \"Deploy the preview environment\"\n      uses: okteto/deploy-preview@latest\n      with:\n        name: dev-previews\n        timeout: 15m\n```\n\n## Development\n\n### Dockerfile Validation\n\nThis repository includes automated validation for the Dockerfile to ensure it always builds successfully:\n\n- **GitHub Action**: The `.github/workflows/dockerfile-validation.yml` workflow automatically runs on every push and pull request that modifies the Dockerfile\n- **Local Validation**: Use the `validate-dockerfile.sh` script to test the Dockerfile locally before pushing:\n  ```bash\n  ./validate-dockerfile.sh\n  ```\n\nThe validation includes:\n- Dockerfile linting with [hadolint](https://github.com/hadolint/hadolint)\n- Building the Docker image\n- Testing that the container runs successfully\n- Verifying that required binaries are present\n- Checking that the entrypoint is executable\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokteto%2Fdeploy-preview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokteto%2Fdeploy-preview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokteto%2Fdeploy-preview/lists"}