-
Notifications
You must be signed in to change notification settings - Fork 1
ci: add PR-triggered CI workflow #48
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
Changes from all commits
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,38 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| node-version: [22] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup Node.js ${{ matrix.node-version }} | ||
| uses: actions/setup-node@v7 | ||
|
Comment on lines
+19
to
+24
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 | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: printf '%s\n' '--- workflow ---'
sed -n '1,40p' .github/workflows/ci.yml
printf '%s\n' '--- action tag refs ---'
for ref in \
'https://api.github.com/repos/actions/checkout/git/ref/tags/v7.0.1' \
'https://api.github.com/repos/actions/setup-node/git/ref/tags/v7'
do
curl -fsSL -H 'Accept: application/vnd.github+json' "$ref" |
jq '{ref: .ref, object: .object}'
doneRepository: WYRE-AI/node-immybot Length of output: 1302 🏁 Script executed: for item in \
'actions/checkout 3d3c42e5aac5ba805825da76410c181273ba90b1' \
'actions/setup-node 820762786026740c76f36085b0efc47a31fe5020'
do
set -- $item
curl -fsSL -H 'Accept: application/vnd.github+json' \
"https://api.github.com/repos/$1/commits/$2" |
jq --arg expected "$2" '{repository: .html_url, sha: .sha, matches: (.sha == $expected)}'
doneRepository: WYRE-AI/node-immybot Length of output: 516 Other (CWE-829): Inclusion of Functionality from Untrusted Control Sphere Reachability: External · Exploitability: Difficult Pin action references to full-length commit SHAs.
🤖 Prompt for AI AgentsSource: MCP tools |
||
| with: | ||
| node-version: ${{ matrix.node-version }} | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run linter | ||
| run: npm run lint | ||
|
|
||
| - name: Build | ||
| run: npm run build | ||
|
|
||
| - name: Run tests | ||
| run: npm test | ||
|
Comment on lines
+37
to
+38
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. 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win Run This workflow runs 🤖 Prompt for AI Agents |
||
Uh oh!
There was an error while loading. Please reload this page.