jfrog-curation-canary 1.0.20260821

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ name: Publish daily canary
2
+
3
+ on:
4
+ schedule:
5
+ # 05:00 UTC daily
6
+ - cron: '0 5 * * *'
7
+ workflow_dispatch: {}
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: '20'
18
+ registry-url: 'https://registry.npmjs.org'
19
+
20
+ - name: Compute today's version
21
+ id: version
22
+ run: echo "version=1.0.$(date -u +%Y%m%d)" >> "$GITHUB_OUTPUT"
23
+
24
+ - name: Set package version
25
+ run: npm pkg set version="${{ steps.version.outputs.version }}"
26
+
27
+ - name: Skip if already published today
28
+ id: check
29
+ run: |
30
+ if npm view "jfrog-curation-canary@${{ steps.version.outputs.version }}" version --registry https://registry.npmjs.org >/dev/null 2>&1; then
31
+ echo "already_published=true" >> "$GITHUB_OUTPUT"
32
+ else
33
+ echo "already_published=false" >> "$GITHUB_OUTPUT"
34
+ fi
35
+
36
+ - name: Publish
37
+ if: steps.check.outputs.already_published == 'false'
38
+ run: npm publish --access public
39
+ env:
40
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dylan Mo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # jfrog-curation-canary
2
+
3
+ A deliberately harmless npm package, published automatically to the public npm
4
+ registry once a day at 05:00 UTC by [`.github/workflows/canary-publish.yml`](.github/workflows/canary-publish.yml)
5
+ in this repo.
6
+
7
+ ## Why does this exist?
8
+
9
+ It's a demo fixture for **JFrog Curation's Immature Package Policy** — a policy
10
+ that blocks any package newer than N days old, regardless of whether it's
11
+ actually malicious. Most supply-chain attacks (e.g. the 2025 Shai-Hulud npm
12
+ worm) exploit the gap between when a malicious package is published and when
13
+ threat intelligence catches up to flag it. A policy that blocks anything "too
14
+ new" closes that gap without needing to know anything about the package's
15
+ actual content.
16
+
17
+ Because this package is republished daily, its latest version is always
18
+ guaranteed to be less than 24 hours old — which makes it a reliable, real,
19
+ live target for demonstrating that block, on demand, without needing to wait
20
+ for a real (and possibly actually malicious) package to show up.
21
+
22
+ ## What does it do?
23
+
24
+ Nothing. `require`-ing or running it prints a one-line message and exits. See
25
+ [`index.js`](index.js).
26
+
27
+ ## Who maintains this?
28
+
29
+ [Dylan Mo](https://github.com/dylanmo-jfrog), a JFrog Solutions Engineer, for
30
+ use in JFrog Curation product demos. Not an official JFrog product or
31
+ package. If you found this while investigating a dependency and have
32
+ questions about it, feel free to open an issue.
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ console.log("Hello from jfrog-curation-canary! This package is intentionally harmless.");
2
+ console.log("It exists solely to demo JFrog Curation's Immature Package Policy.");
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "jfrog-curation-canary",
3
+ "version": "1.0.20260821",
4
+ "description": "A harmless, auto-published-daily npm package used to demo JFrog Curation's Immature Package Policy (blocks any package newer than N days, regardless of threat intelligence).",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "start": "node index.js"
8
+ },
9
+ "author": "Dylan Mo <dylanmo@jfrog.com>",
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/dylanmo-jfrog/jfrog-curation-canary.git"
14
+ },
15
+ "keywords": [
16
+ "jfrog",
17
+ "curation",
18
+ "demo",
19
+ "canary"
20
+ ]
21
+ }