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.
@useoptic/optic
Advanced tools
Optic CI helps you review OpenAPI specs and enforce API standards. Sign up on app.useoptic.com to get a token and get started.
Optic comes with a GitHub Action for easy setup and configuration. The Optic GitHub Action can be configured in your .github/workflows/optic-ci.yml
file. An example snippet is listed below.
name: Optic
on: [pull_request]
jobs:
optic-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: optic run
uses: opticdev/github-action@v1
with:
token: ${{ secrets.OPTIC_TOKEN }} # You will need to connect up your secret here
base: ${{ github.event.pull_request.base.ref }}
You can manually connect up Optic using any other CI provider by calling optic directly. An example implementation in bash is listed below, where each step command can be broken out into different CI steps.
# requires nodeJS installed
# install optic-ci in your CI runner
npm i -g @useoptic/optic
# create the context - these will differ between CI providers
optic cloud create-manual-context \\
--owner <owner> \\ # the repository owner (in github, this can be an organization or user)
--repo <repo> \\ # the repository name
--pull_request <pull_request> \\ # the pull request number that this run is associated with
--run <run> \\ # the run number that this run is associated with
--commit_hash <commit_hash> \\ # the commit hash that this run is associated with
--branch_name <branch_name> \\ # the branch name that this run is associated with
--user <user> # the user that triggered this run
# trigger the optic runner
# base is the branch that you are comparing the OpenAPI Changes against - this defaults to 'origin/master'
OPTIC_TOKEN=<token> optic cloud run --base <base ref>
FAQs
Unknown package
The npm package @useoptic/optic receives a total of 7,880 weekly downloads. As such, @useoptic/optic popularity was classified as popular.
We found that @useoptic/optic 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.