Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for CodeQL SAST Security Hardening
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[LANGUAGE_STACK] - ✦
[SCAN_SCHEDULE]
codeql-sast-security-hardening.txt
Act as a Cybersecurity Expert. Develop a GitHub Actions workflow that integrates CodeQL for Static Application Security Testing (SAST). The workflow must: 1) Target the [LANGUAGE_STACK] codebase. 2) Run on every push to main, every PR, and on a cron schedule of [SCAN_SCHEDULE]. 3) Initialize the CodeQL runner and perform autobuild. 4) Upload results to GitHub Security Tab. Ensure the workflow is optimized to only scan changed files where possible to reduce execution time.
Example Output
"A security-centric YAML utilizing 'github/codeql-action' with scheduled triggers and language-specific analysis configurations."