Skip to content

Commit

Permalink
Merge pull request #3 from CheckPointSW/checkpoint-readme
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
njenia authored Mar 19, 2024
2 parents ea767c0 + b2589d2 commit 4f25915
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,35 @@
<br/>
<br/>
<p align="center">
<a href="http://checkpoint.com">
<img alt="CheckPoint logo" src="./cp_logo.svg" width="90"/>
</a>
<a href="http://spectralops.io">
<img alt="SpectralOps logo" src="./logo.svg" width="300"/>
<img alt="SpectralOps logo" src="./spectral_logo.svg" width="300"/>
</a>
</p>
<p align="center">
<img src="https://github.com/spectralops/spectral-github-action/actions/workflows/main.yml/badge.svg"/>
<img src="https://img.shields.io/badge/license-MIT-brightgreen"/>
</p>
<h1>Spectral Scan</h1>
</p>

# Install Spectral Scan action

Spectral Scan is a single self-contained binary, that's easy to get and use. This action installs the latest Spectral version into your PATH.
# CloudGuard Code Security
Spectral is the shift-left solution of Check Point’s CloudGuard to provide the industry’s most comprehensive security platform from code to cloud. Spectral was built as a platform from the ground up to have a fantastic developer experience (DX). Spectral Scan is a single self-contained binary, that's easy to get and use.

## Example usage

Include this Action as a step in your workflow:

```
uses: spectralops/spectral-github-action@v4
uses: checkpointsw/spectral-github-action@v4
with:
spectral-dsn: $SPECTRAL_DSN
spectral-args: scan --ok
```

You can see an example of this Action [here](https://github.com/SpectralOps/spectral-github-action/tree/main/.github/workflows/main.yml)
[Review Action Usage Example](.github/workflows/main.yml)

## Configuration

You'll need to provide Spectral DSN as an input variable. You should always store your DSN in a secure way, like below in [GitHub secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).

```yaml
Expand All @@ -45,13 +44,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install and run Spectral CI
uses: spectralops/spectral-github-action@v4
uses: checkpointsw/spectral-github-action@v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: scan --ok
```
Spectral provides another scan option to audit your Github/Gitlab organization, user or repo.
Spectral provides another scan option to audit your GitHub/GitLab organization, user or repo.
```yaml
name: Spectral
Expand All @@ -64,16 +63,18 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install and run Spectral Audit
uses: spectralops/spectral-github-action@v4
uses: checkpointsw/spectral-github-action@v4
with:
spectral-dsn: ${{ secrets.SPECTRAL_DSN }}
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/SpectralOps/spectral-github-action --include-tags base,audit --ok
spectral-args: github -k repo -t ${{ secrets.MY_GITHUB_TOKEN }} https://github.com/checkpointsw/spectral-github-action --include-tags base,audit --ok
```
### How to Contribute
We welcome [issues](https://github.com/checkpointsw/spectral-github-action/issues) to and [pull requests](https://github.com/checkpointsw/spectral-github-action/pulls) against this repository!
We welcome [issues](https://github.com/SpectralOps/spectral-github-action/issues) to and [pull requests](https://github.com/SpectralOps/spectral-github-action/pulls) against this repository!
## Resources
- [Solution Review](https://www.checkpoint.com/cloudguard/developer-security/)
- [Documentation](https://guides.spectralops.io/docs)
## License
This project is licensed under the MIT License. See [LICENSE](LICENSE) for further details.
This project is licensed under the MIT License. See [LICENSE](LICENSE) for further details.
4 changes: 4 additions & 0 deletions cp_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 4f25915

Please sign in to comment.