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
25 changes: 25 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Semgrep

# Free/OSS Semgrep scan (no Semgrep AppSec Platform token) on every pull
# request targeting main.

on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
semgrep:
name: Semgrep scan
runs-on: ubuntu-latest
container:
image: semgrep/semgrep:1.169.0
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run Semgrep
run: semgrep scan --config p/golang --config p/secrets --error
4 changes: 3 additions & 1 deletion pkg/deploy/hostname.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package deploy

import (
"fmt"
"math/rand"
// Non-crypto randomness is fine here: generated instance names are scoped
// to the user's own account and are not global identifiers.
"math/rand" // nosemgrep: go.lang.security.audit.crypto.math_random.math-random-used
"regexp"
)

Expand Down
Loading