{"id":31904175,"url":"https://github.com/cloudfoundry-community/cf-resource","last_synced_at":"2025-10-13T13:47:51.424Z","repository":{"id":20043709,"uuid":"23311978","full_name":"cloudfoundry-community/cf-resource","owner":"cloudfoundry-community","description":"Concourse resource for interacting with Cloud Foundry","archived":false,"fork":false,"pushed_at":"2021-09-03T19:04:13.000Z","size":6268,"stargazers_count":35,"open_issues_count":26,"forks_count":63,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-06-20T07:57:45.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/cloudfoundry-community.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":"2014-08-25T11:54:34.000Z","updated_at":"2024-02-09T14:28:35.000Z","dependencies_parsed_at":"2022-08-05T06:15:42.500Z","dependency_job_id":null,"html_url":"https://github.com/cloudfoundry-community/cf-resource","commit_stats":null,"previous_names":["concourse/cf-resource"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry-community/cf-resource","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcf-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcf-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcf-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcf-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry-community","download_url":"https://codeload.github.com/cloudfoundry-community/cf-resource/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcf-resource/sbom","scorecard":{"id":292641,"data":{"date":"2025-08-11","repo":{"name":"github.com/cloudfoundry-community/cf-resource","commit":"20e1741c23e238279f64d3b3571cc1ecf6857248"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"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":"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":"Code-Review","score":7,"reason":"Found 10/13 approved changesets -- score normalized to 7","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":"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":"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":"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: 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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.1.4 not signed: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/48988363","Warn: release artifact v1.1.3 not signed: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/46637679","Warn: release artifact v1.1.2 not signed: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/43932046","Warn: release artifact v1.1.1 not signed: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/36921442","Warn: release artifact v1.1.0 not signed: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/16701727","Warn: release artifact v1.1.4 does not have provenance: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/48988363","Warn: release artifact v1.1.3 does not have provenance: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/46637679","Warn: release artifact v1.1.2 does not have provenance: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/43932046","Warn: release artifact v1.1.1 does not have provenance: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/36921442","Warn: release artifact v1.1.0 does not have provenance: https://api.github.com/repos/cloudfoundry-community/cf-resource/releases/16701727"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: dockerfiles/alpine/Dockerfile:4","Warn: containerImage not pinned by hash: dockerfiles/alpine/Dockerfile:19","Warn: containerImage not pinned by hash: dockerfiles/alpine/Dockerfile:26","Warn: containerImage not pinned by hash: dockerfiles/alpine/Dockerfile:34","Warn: containerImage not pinned by hash: dockerfiles/ubuntu/Dockerfile:4","Warn: containerImage not pinned by hash: dockerfiles/ubuntu/Dockerfile:22","Warn: containerImage not pinned by hash: dockerfiles/ubuntu/Dockerfile:32","Warn: containerImage not pinned by hash: dockerfiles/ubuntu/Dockerfile:40","Info:   0 out of   8 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":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2021-0061 / GHSA-r88r-gmrh-7j83","Warn: Project is vulnerable to: GO-2022-0956 / GHSA-6q6q-88xp-6f2r","Warn: Project is vulnerable to: GO-2020-0036 / GHSA-wxc4-f4m6-wwqv"],"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 28 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-17T18:40:33.352Z","repository_id":20043709,"created_at":"2025-08-17T18:40:33.352Z","updated_at":"2025-08-17T18:40:33.352Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015339,"owners_count":26085685,"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-13T02:00:06.723Z","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":[],"created_at":"2025-10-13T13:47:44.850Z","updated_at":"2025-10-13T13:47:51.417Z","avatar_url":"https://github.com/cloudfoundry-community.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud Foundry Resource\n\nAn output only resource (at the moment) that will deploy an application to a\nCloud Foundry deployment.\n\n## Source Configuration\n\nNote: you must provide either `username` and `password` or `client_id` and `client_secret`.\n\n* `api`: *Required.* The address of the Cloud Controller in the Cloud Foundry\n  deployment.\n* `username`: *Optional.* The username used to authenticate.\n* `password`: *Optional.* The password used to authenticate.\n* `client_id`: *Optional.* The client id used to authenticate.\n* `client_secret`: *Optional.* The client secret used to authenticate.\n* `organization`: *Required.* The organization to push the application to.\n* `space`: *Required.* The space to push the application to.\n* `skip_cert_check`: *Optional.* Check the validity of the CF SSL cert.\n  Defaults to `false`.\n* `verbose`: *Optional.* Invoke `cf` cli using `CF_TRACE=true` to print all API calls made to Cloud Foundry.\n\n## Behaviour\n\n### `out`: Deploy an application to a Cloud Foundry\n\nPushes an application to the Cloud Foundry detailed in the source\nconfiguration. A [manifest][cf-manifests] that describes the application must\nbe specified.\n\n[cf-manifests]: http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html\n\n#### Parameters\n\n* `manifest`: *Required.* Path to a application manifest file.\n* `path`: *Optional.* Path to the application to push. If this isn't set then\n  it will be read from the manifest instead.\n* `current_app_name`: *Optional.* This should be the name of the application\n  that this will re-deploy over. If this is set the resource will perform a\n  zero-downtime deploy.\n* `environment_variables`: *Optional.* It is not necessary to set the variables in [manifest][cf-manifests] if this parameter is set.\n* `vars`: *Optional.* Map of variables to pass to manifest\n* `vars_files`: *Optional.* List of variables files to pass to manifest\n* `docker_username`: *Optional.* This is used as the username to authenticate against a protected docker registry.\n* `docker_password`: *Optional.* This should be the users password when authenticating against a protected docker registry.\n* `show_app_log`: *Optional.* Tails the app log during startup, useful to debug issues when using blue/green deploys together with the `current_app_name` option.\n* `no_start`: *Optional.* Deploys the app but does not start it. This parameter is ignored when `current_app_name` is specified.\n\n## Pipeline example\n\n```yaml\n---\njobs:\n- name: job-deploy-app\n  public: true\n  serial: true\n  plan:\n  - get: resource-web-app\n  - task: build\n    file: resource-web-app/build.yml\n  - put: resource-deploy-web-app\n    params:\n      manifest: build-output/manifest.yml\n      environment_variables:\n        key: value\n        key2: value2\n\nresources:\n- name: resource-web-app\n  type: git\n  source:\n    uri: https://github.com/cloudfoundry-community/simple-go-web-app.git\n\n- name: resource-deploy-web-app\n  type: cf\n  source:\n    api: https://api.run.pivotal.io\n    username: EMAIL\n    password: PASSWORD\n    organization: ORG\n    space: SPACE\n    skip_cert_check: false\n```\n\n## Development\n\n### Prerequisites\n\n* golang is *required* - version 1.9.x is tested; earlier versions may also\n  work.\n* docker is *required* - version 17.06.x is tested; earlier versions may also\n  work.\n* godep is used for dependency management of the golang packages.\n\n### Running the tests\n\nThe tests have been embedded with the `Dockerfile`; ensuring that the testing\nenvironment is consistent across any `docker` enabled platform. When the docker\nimage builds, the test are run inside the docker container, on failure they\nwill stop the build.\n\nRun the tests with the following commands for both `alpine` and `ubuntu` images:\n\n```sh\ndocker build -t cf-resource -f dockerfiles/alpine/Dockerfile .\ndocker build -t cf-resource -f dockerfiles/ubuntu/Dockerfile .\n```\n\n### Contributing\n\nPlease make all pull requests to the `master` branch and ensure tests pass\nlocally.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fcf-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry-community%2Fcf-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fcf-resource/lists"}