Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-roniz authored Sep 20, 2022
1 parent afdc8e9 commit 7ca4f8c
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Secure Code Workflow Template
Use this template to monitor, classify and protect your code, assets and infrastructure for exposed API keys, tokens, credentials, vulnerable open-source packages, and high-risk security misconfigurations in a simple way, without noise.

## GitHub Integration

The following instructions would help you to perform a fast and simple integration to your GitHub repo workflow actions using [GitHub Actions](https://docs.github.com/en/actions).

### Add To Repo

Add this job to your workflow yml file under .github/workflows/

```
name: Secure Code Analysis
on:
- push
- pull_request
jobs:
code-analysis:
uses: CheckPointSW/secure-code-workflow/.github/workflows/code-analysis.yml@main
secrets: inherit
```

### Create Secrets

SourceGuard action must recive:

- `SG_CLIENT_ID` - Infinity Portal account identification
- `SG_SECRET_KEY` - Secret key for access

To generate these parameters, refer to https://portal.checkpoint.com/dashboard/sourceguard#/config/install (select your required Tenant) > GENERATE TOKEN

Spectral action must recive:
- `SPECTRAL_DSN` - You'll need to provide Spectral dsn. [GitHub secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).

To retrive `SPECTRAL_DSN` parameter, refer to https://app.spectralops.io/sources

Now, create these keys:
- Organiztaion Scope
https://github.com/organizations/OrganizationName/settings/secrets/actions
- Repo Scope
https://github.com/AccountName/RepoName/settings/secrets/actions

See more about [GitHub secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).

0 comments on commit 7ca4f8c

Please sign in to comment.