Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/security-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ path = "."

[kics]
platform = "Dockerfile"
exclude_queries = ["fd54f200-402c-4333-a5a4-36ef6709af2f"]

[grype]
ignore_states = "not-fixed,unknown,wont-fix"
transitive_libraries = false

[opengrep]
exclude = ["*_test.go", "docker-compose.yml", "Dockerfile"]
exclude_rule = ["go.lang.security.audit.dangerous-exec-command.dangerous-exec-command"]
exclude = ["*_test.go", "docker-compose.yml", "Dockerfile"]
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
name: Security
needs: test
uses: ./.github/workflows/security.yml
secrets: inherit
permissions:
contents: read
packages: read
12 changes: 10 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,20 @@ jobs:
run: test -f "$GITHUB_WORKSPACE/.github/security-config.toml"

- name: Run ScopeGuardian
env:
DD_URL: ${{ secrets.DD_URL }}
DD_ACCESS_TOKEN: ${{ secrets.DD_ACCESS_TOKEN }}
SG_VERSION: ${{ vars.SG_VERSION }}
BRANCH: ${{ github.head_ref || github.ref_name }}
run: |
docker run --rm \
-v "$GITHUB_WORKSPACE:/tmp/data" \
-e SCAN_DIR=/tmp/data \
ghcr.io/paranoihack/scopeguardian:${{ vars.SG_VERSION }} \
-e DD_URL="$DD_URL" \
-e DD_ACCESS_TOKEN="$DD_ACCESS_TOKEN" \
"ghcr.io/paranoihack/scopeguardian:$SG_VERSION" \
--projectName ScopeGuardian \
--branch "${{ github.ref_name }}" \
--branch "$BRANCH" \
--threshold "critical=1,high=1,medium=1,low=1" \
--sync \
/tmp/data/.github/security-config.toml
Loading