![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@codefresh-io/cf-git-providers
Advanced tools
An NPM module/CLI for interacting with various git providers
An NPM module/CLI for interacting with various git providers
In case you have node.js installed you can easily install with NPM:
npm install -g @codefresh-io/cf-git-providers
Or you can run it as a Docker container:
docker run -it --rm --entrypoint "sh" codefresh/cgp
To use the cli tool you will need to provide it with a Codefresh git context which you can get by using the codefresh-cli:
codefresh get context <context-name> -o json --decrypt | base64
Then, to provide this value to the cli by adding it to each command with the flag --git-context
or (preferably) by exporting the CF_GIT_CONTEXT
environment variable, example:
export CF_GIT_CONTEXT=$(codefresh get context <context-name> -o json --decrypt | base64)
Examples:
To get the list of repositories for a specific owner:
cgp list repos --owner codefresh-io
To create a repository webhook:
cgp create webhook --owner codefresh-io --repo cli --endpoint http://example.com --secret some-secret
With npm:
npm install @codefresh-io/cf-git-providers
With yarn:
yarn add @codefresh-io/cf-git-providers
import { getProviderByContext } from '@codefresh-io/cf-git-providers'
(async function () {
try {
const provider = await getProviderByContext(gitContext, providerOptions)
const fileContents = await provider.fetchRawFile({ owner, repo, ref, path })
console.log(fileContents)
} catch (error) {
console.error(error)
}
})()
FAQs
An NPM module/CLI for interacting with various git providers
The npm package @codefresh-io/cf-git-providers receives a total of 253 weekly downloads. As such, @codefresh-io/cf-git-providers popularity was classified as not popular.
We found that @codefresh-io/cf-git-providers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.