Skip to content

Commit 160632a

Browse files
authored
Merge pull request #25 from ScrapeGraphAI/ci/hol-plugin-scanner
ci: add HOL AI Plugin Scanner workflow and harden repo
2 parents da740c3 + 250730b commit 160632a

5 files changed

Lines changed: 75 additions & 5 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 10

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
name: Test
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: oven-sh/setup-bun@v2
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
1616
- run: bun install
1717
- run: bun test
1818

1919
lint:
2020
name: Lint & Typecheck
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
24-
- uses: oven-sh/setup-bun@v2
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
2525
- run: bun install
2626
- run: bun run check
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: HOL Plugin Scanner
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
permissions:
10+
contents: read
11+
security-events: write
12+
13+
jobs:
14+
scan:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- name: HOL Plugin Scanner
19+
uses: hashgraph-online/ai-plugin-scanner-action@c137b7fb5beb34cb1f37490487762172ba9c9f8c # v1.2.21
20+
with:
21+
plugin_dir: "."
22+
mode: scan
23+
min_score: 80
24+
fail_on_severity: high
25+
format: sarif
26+
upload_sarif: true

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ Package: [just-scrape](https://www.npmjs.com/package/just-scrape) on npm.
8282
Get an API key at [scrapegraphai.com/dashboard](https://scrapegraphai.com/dashboard).
8383

8484
```bash
85-
export SGAI_API_KEY="sgai-..."
85+
# Set your API key (from the dashboard) in the environment:
86+
export SGAI_API_KEY=<your-api-key>
8687
just-scrape validate
8788
just-scrape credits
8889
```

‎SECURITY.md‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
The latest published version of `just-scrape` on npm receives security updates.
6+
7+
## Reporting a Vulnerability
8+
9+
If you discover a security vulnerability, please report it privately rather than
10+
opening a public issue.
11+
12+
- Email: **security@scrapegraphai.com**
13+
- Alternatively, use GitHub's [private vulnerability reporting](https://github.com/ScrapeGraphAI/just-scrape/security/advisories/new).
14+
15+
Please include:
16+
17+
- A description of the vulnerability and its impact
18+
- Steps to reproduce, or a proof of concept
19+
- Any suggested remediation
20+
21+
We aim to acknowledge reports within 3 business days and to provide a remediation
22+
timeline after triage. Please do not disclose the issue publicly until a fix has
23+
been released.
24+
25+
## API Keys
26+
27+
`just-scrape` requires a ScrapeGraph AI API key, supplied via the `SGAI_API_KEY`
28+
environment variable or a local `.env` file. Never commit API keys to source
29+
control. Rotate any key that may have been exposed at
30+
[scrapegraphai.com/dashboard](https://scrapegraphai.com/dashboard).

0 commit comments

Comments
 (0)