Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/promptfoo-code-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
git checkout pr-head
- name: Run Promptfoo Code Scan
uses: promptfoo/code-scan-action@v0
uses: promptfoo/code-scan-action@staging

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Promptfoo Code Scan' step
Uses Step
uses 'promptfoo/code-scan-action' with ref 'staging', not a pinned commit hash
with:
min-severity: medium
api-host: https://freddy-uninvestable-jenae.ngrok-free.dev
11 changes: 11 additions & 0 deletions internal-vuln-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Internal PR test file
const express = require('express');
const app = express();

app.get('/search', (req, res) => {
const term = req.query.q;
// XSS vulnerability - rendering unsanitized input
res.send(`<h1>Results for: ${term}</h1>`);

Check failure

Code scanning / CodeQL

Reflected cross-site scripting High

Cross-site scripting vulnerability due to a
user-provided value
.
});

module.exports = app;