{"id":18708835,"url":"https://github.com/oracle-actions/get-ocir-repository","last_synced_at":"2025-10-30T20:49:21.788Z","repository":{"id":42638827,"uuid":"381308175","full_name":"oracle-actions/get-ocir-repository","owner":"oracle-actions","description":"Create or find an Oracle Cloud Infrastructure Registry container repository","archived":false,"fork":false,"pushed_at":"2024-11-25T07:40:56.000Z","size":2114,"stargazers_count":11,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-23T08:05:30.300Z","etag":null,"topics":["actions","github-actions","ocir","oracle-cloud","oracle-cloud-infrastructure"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-actions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-29T09:22:28.000Z","updated_at":"2025-08-11T06:26:38.000Z","dependencies_parsed_at":"2024-06-20T14:35:00.021Z","dependency_job_id":"d4d5ba75-c504-4886-b417-a0794fb96abc","html_url":"https://github.com/oracle-actions/get-ocir-repository","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":0.2272727272727273,"last_synced_commit":"66be00c83a81cb11dc0d9c6caa8665b5f9cf944d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/oracle-actions/get-ocir-repository","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Fget-ocir-repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Fget-ocir-repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Fget-ocir-repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Fget-ocir-repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-actions","download_url":"https://codeload.github.com/oracle-actions/get-ocir-repository/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-actions%2Fget-ocir-repository/sbom","scorecard":{"id":711393,"data":{"date":"2025-08-11","repo":{"name":"github.com/oracle-actions/get-ocir-repository","commit":"66be00c83a81cb11dc0d9c6caa8665b5f9cf944d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.8,"checks":[{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/18 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":"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":"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":"Token-Permissions","score":8,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/check-dist.yml:21","Warn: topLevel 'security-events' permission set to 'write': .github/workflows/codeql-analysis.yml:17","Info: topLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:14","Warn: topLevel 'checks' permission set to 'write': .github/workflows/codeql-analysis.yml:15","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/linter.yml:12","Info: topLevel 'packages' permission set to 'read': .github/workflows/linter.yml:13","Warn: topLevel 'statuses' permission set to 'write': .github/workflows/linter.yml:14","Info: topLevel 'contents' permission set to 'read': .github/workflows/test-get-ocir-repository-action.yml:17","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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Universal Permissive License v1.0: LICENSE.txt: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":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-dist.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/check-dist.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linter.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/linter.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test-get-ocir-repository-action.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/test-get-ocir-repository-action.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test-get-ocir-repository-action.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/oracle-actions/get-ocir-repository/test-get-ocir-repository-action.yml/main?enable=pin","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   2 out of   2 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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 6 commits out of 16 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":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275"],"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-22T08:17:41.019Z","repository_id":42638827,"created_at":"2025-08-22T08:17:41.020Z","updated_at":"2025-08-22T08:17:41.020Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281881921,"owners_count":26577705,"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-30T02:00:06.501Z","response_time":61,"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-actions","ocir","oracle-cloud","oracle-cloud-infrastructure"],"created_at":"2024-11-07T12:25:22.975Z","updated_at":"2025-10-30T20:49:21.740Z","avatar_url":"https://github.com/oracle-actions.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-ocir-repository\n\nUse this GitHub Action to return the OCID and full URI for the specified Oracle Cloud Infrastructure Registry (OCIR)\nrepository. If the repository does not exist, it will be created automatically.\n\n## Required environment variables\n\nThe following [OCI CLI environment variables][1] must be defined:\n\n- `OCI_CLI_USER`\n- `OCI_CLI_TENANCY`\n- `OCI_CLI_FINGERPRINT`\n- `OCI_CLI_KEY_CONTENT`\n- `OCI_CLI_REGION`\n\nWe recommend using GitHub Secrets to store these values. If you have more than one step or workflow that requires these\nvalues, consider [defining your environment variables][2] at the job or workflow level.\n\n## Inputs\n\n- `name`: the name of the repository\n- `compartment`: the OCID of the compartment in which to search for or create the repository\n\n## Outputs\n\n- `repo_ocid`: The OCID of the repository\n- `repo_path`: The full URI to the repository to be consumed directly by Docker or Podman.\n\n## Sample workflow\n\nThis sample workflow will either create a repository named `oraclelinux` in the `OCI_COMPARTMENT_OCID` compartment or\nretrieve the path of an existing `oraclelinux` repository. The `repo_path` is then used by the `tag-and-push-image` step\nas the target image repository for the `docker push` command.\n\nThis example also uses the [`login-ocir`][3] action which provides a simple mechanism for logging into OCIR using an\nauth token.\n\n```yaml\njobs:\n  get-ocir-repository-test:\n    runs-on: ubuntu-22.04 Test\n    env:\n      OCI_CLI_USER: ${{ secrets.OCI_CLI_USER }}\n      OCI_CLI_TENANCY: ${{ secrets.OCI_CLI_TENANCY }}\n      OCI_CLI_FINGERPRINT: ${{ secrets.OCI_CLI_FINGERPRINT }}\n      OCI_CLI_KEY_CONTENT: ${{ secrets.OCI_CLI_KEY_CONTENT }}\n      OCI_CLI_REGION: ${{ secrets.OCI_CLI_REGION }}\n    steps:\n      - name: Get or create an OCIR Repository\n        uses: oracle-actions/get-ocir-repository@v1.3.0\n        id: get-ocir-repository\n        with:\n          name: oraclelinux\n          compartment: ${{ secrets.OCI_COMPARTMENT_OCID }}\n\n      - name: Log into OCIR\n        uses: oracle-actions/login-ocir@v1.3.0\n        id: login-ocir\n        with:\n          auth_token: ${{ secrets.OCI_AUTH_TOKEN }}\n\n      - name: Tag and push a container image\n        id: tag-and-push-image\n        run: |\n          docker pull oraclelinux:8-slim\n          docker tag \"oraclelinux:8-slim\" \"${{ steps.get-ocir-repository.outputs.repo_path }}:8-slim\"\n          docker push \"${{ steps.get-ocir-repository.outputs.repo_path }}:8-slim\"\n```\n\nSee [`action.yml`](./action.yml) for more details.\n\n## Contributing\n\nWe welcome contributions from the community. Before submitting a pull request, please\n[review our contribution guide](./CONTRIBUTING.md).\n\n## Security\n\nPlease consult the [security guide](./SECURITY.md) for our responsible security vulnerability disclosure process.\n\n## License\n\nCopyright (c) 2022, 2024 Oracle and/or its affiliates.\n\nReleased under the Universal Permissive License v1.0 as shown at \u003chttps://oss.oracle.com/licenses/upl/\u003e.\n\n[1]: https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/clienvironmentvariables.htm\n[2]: https://docs.github.com/en/actions/learn-github-actions/environment-variables\n[3]: https://github.com/oracle-actions/login-ocir\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-actions%2Fget-ocir-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-actions%2Fget-ocir-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-actions%2Fget-ocir-repository/lists"}