Skip to content

Commit

Permalink
Remove SourceGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
chkp-roniz authored Oct 25, 2023
1 parent 0fedad2 commit 760e4a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/code-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
name: Code Analysis

on: workflow_call
# push:
# branches: [ $default-branch ]
# pull_request:
# branches: [ $default-branch ]

env:
SPECTRAL_DSN: ${{ secrets.SPECTRAL_DSN }}

jobs:
sourceguard:
runs-on: ubuntu-latest
container:
image: sourceguard/sourceguard-cli:latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: SourceGuard Scan
uses: CheckPointSW/sourceguard-action@main
with:
SG_CLIENT_ID: ${{ secrets.SG_CLIENT_ID }}
SG_SECRET_KEY: ${{ secrets.SG_SECRET_KEY }}

spectral:
runs-on: ubuntu-latest
Expand Down
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,12 @@ on:
jobs:
code-analysis:
uses: CheckPointSW/secure-code-workflow/.github/workflows/code-analysis.yml@main
uses: CheckPointSW/secure-code-workflow/.github/workflows/code-analysis.yml@latest
secrets: inherit
```

### Configuration

SourceGuard action must receive:

- `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 receive:
- `SPECTRAL_DSN` - You'll need to provide Spectral dsn. [GitHub secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets).

Expand Down

0 comments on commit 760e4a1

Please sign in to comment.