Promptautomation
Hardened GitHub Actions CI Workflow with Minimal Permissions
Generates a cached CI workflow with least-privilege GITHUB_TOKEN permissions, pinned actions, and safe PR handling.
Prompt template
1
2
3
4
5
6
7
8
9
10
Generate `.github/workflows/ci.yml` for {{tech_stack}}.
Verification steps: {{check_steps}}
Security requirements:
1. Explicit minimal `permissions: contents: read`.
2. Pin third-party actions safely with version comments.
3. Avoid unsafe `pull_request_target` fork execution.
Output format & rules: concise structured response with zero filler.
Copy the template, add your details, and paste the prompt into your chosen AI service.
Comments · 0
Nothing here yet
Sign in to participate