Repository navigation
add another inspection violation #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
94d21c8
f2198bc
68a9663
4f97db0
9f6715d
14e2945
291a4e0
5443589
b4e9eb0
b4f391d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| version: '3.8' | ||
|
|
||
| services: | ||
| web: | ||
| container_name: nginx | ||
| image: nginx | ||
| ports: | ||
| - "15000:80" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: Deploy app | ||
| on: [pull_request] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🔴 Critical | 🏗️ Heavy lift Do not deploy untrusted This workflow runs on PRs, checks out PR-controlled files, and uses deployment credentials to run the remote Compose stack. A same-repo PR can alter the workflow or 🤖 Prompt for AI Agents |
||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
|
Comment on lines
+8
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n== workflow files ==\n'
git ls-files .github/workflows
printf '\n== deploy workflow outline ==\n'
wc -l .github/workflows/deploy.yml
cat -n .github/workflows/deploy.yml | sed -n '1,220p'Repository: JimPans3/code-inspection Length of output: 1224 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '\n== git/auth related references in deploy workflow ==\n'
rg -n --no-heading -S 'persist-credentials|git\s+(push|commit|tag|fetch|pull)|github\.token|GITHUB_TOKEN|checkout@' .github/workflows/deploy.yml
printf '\n== all workflow files mentioning actions/checkout ==\n'
rg -n --no-heading -S 'actions/checkout@' .github/workflowsRepository: JimPans3/code-inspection Length of output: 445 🌐 Web query:
💡 Result: As of July 16, 2026, the current major release version of actions/checkout is v7 [1][2]. The v5 release, which introduced Node.js 24 support, was released on August 11, 2025 [3][4]. While Git tags point to specific commit SHAs, it is standard practice in GitHub Actions to reference the major version tag (e.g., Citations:
Harden the checkout step. Update 🧰 Tools🪛 actionlint (1.7.12)[error] 8-8: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) 🪛 zizmor (1.26.1)[warning] 8-10: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
| - uses: appleboy/scp-action@v0.1.4 | ||
| with: | ||
| host: ${{ secrets.HOST }} | ||
| username: ${{ secrets.USERNAME }} | ||
| key: ${{ secrets.KEY }} | ||
| port: ${{ secrets.PORT }} | ||
| source: ".deploy/" | ||
| target: "~/" | ||
| - uses: appleboy/ssh-action@v0.1.10 | ||
| with: | ||
| host: ${{ secrets.HOST }} | ||
| username: ${{ secrets.USERNAME }} | ||
| key: ${{ secrets.KEY }} | ||
| port: ${{ secrets.PORT }} | ||
| script: | | ||
| cd .deploy | ||
| /home/timo/bin/docker-compose-v2 up -d | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,3 +3,7 @@ | |
| var i = 0; | ||
|
|
||
| Console.WriteLine("Hello, World!"); | ||
|
|
||
| var x = 2; | ||
|
|
||
| Console.WriteLine(x); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: JimPans3/code-inspection
Length of output: 1314
Don't read
workflow_runonpull_requestThis workflow only runs on
pull_request, sogithub.event.workflow_run.conclusionis unavailable and the job is skipped. Remove the guard, or switch this workflow toworkflow_runif it needs to gate on a prior run.🤖 Prompt for AI Agents