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
37 changes: 37 additions & 0 deletions .github/squidgate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# SquidGate — PR security gate
# https://github.com/SquidSec/SquidGate
version: 1

llm:
provider: custom
model: grok-build-0.1

policy:
block_on: high
min_confidence: medium
categories:
secrets: true
injection: true
authn_authz: true
cryptography: true
insecure_deserialization: true
path_traversal: true
ssrf: true
xss: true
csrf: true
supply_chain: true
hardcoded_credentials: true
dangerous_functions: true
misconfiguration: true
custom_rules: []

context:
lines_before: 30
lines_after: 30
max_files: 50
max_diff_bytes: 500000

output:
comment_on_pr: true
annotate_lines: true
fail_on_error: true
26 changes: 26 additions & 0 deletions .github/workflows/squidgate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: SquidGate

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: write
checks: write

jobs:
squidgate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: SquidGate
uses: SquidSec/SquidGate@v1

Check warning on line 21 in .github/workflows/squidgate.yml

View workflow job for this annotation

GitHub Actions / SquidGate

Unpinned third-party GitHub Action

MEDIUM [high] The workflow references the third-party action 'SquidSec/SquidGate@v1' using a mutable tag instead of a specific commit SHA. This allows supply chain attacks if the tag is moved to point to malicious code. Recommendation: Pin to a full commit SHA: uses: SquidSec/SquidGate@<commit-sha>. Consider the same for actions/checkout@v4. CWE: CWE-829 OWASP: A06:2021 Category: supply_chain
with:
llm-api-key: ${{ secrets.LLM_API_KEY }}
llm-provider: custom
llm-model: grok-build-0.1
llm-base-url: https://api.x.ai/v1
Loading