Skip to content

Commit e81cf6f

Browse files
Merge pull request #1634 from laststance/copilot/add-aikido-safe-chain
2 parents 598fcf9 + 4c10789 commit e81cf6f

File tree

2 files changed

+63
-1
lines changed

2 files changed

+63
-1
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Aikido Safe Chain - Malware Detection for Package Installation
2+
#
3+
# This workflow integrates Aikido Safe Chain to protect against malicious packages
4+
# during dependency installation in CI/CD pipelines.
5+
#
6+
# What is Aikido Safe Chain?
7+
# Aikido Safe Chain is a free security tool that prevents developers from installing
8+
# malware through package managers (npm, pnpm, yarn, npx, pnpx). It wraps around
9+
# package manager commands and verifies packages against Aikido Intel - Open Sources
10+
# Threat Intelligence before installation. When malware is detected, it blocks the
11+
# installation and alerts the user.
12+
#
13+
# Key features:
14+
# - Free to use, no tokens required
15+
# - Works with Node.js 18+
16+
# - Supports npm, pnpm, yarn, npx, and pnpx
17+
# - Currently offers limited scanning for pnpm (scans install command arguments)
18+
# - Full dependency tree scanning support coming soon for pnpm
19+
#
20+
# GitHub Repository: https://github.com/AikidoSec/safe-chain
21+
# Documentation: https://github.com/AikidoSec/safe-chain#usage-in-cicd
22+
23+
name: Safe Chain Security Check
24+
25+
on:
26+
pull_request: ~
27+
push:
28+
branches:
29+
- main
30+
31+
jobs:
32+
safe-chain-check:
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v3
37+
38+
- name: Install pnpm
39+
uses: pnpm/action-setup@v4
40+
with:
41+
version: 10
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: '22'
47+
cache: 'pnpm'
48+
49+
- name: Install Aikido Safe Chain
50+
run: |
51+
npm install -g @aikidosec/safe-chain
52+
safe-chain setup-ci
53+
shell: bash
54+
55+
- name: Install dependencies with malware protection
56+
run: pnpm install
57+
shell: bash
58+
59+
- name: Verify installation
60+
run: |
61+
echo "✅ All dependencies installed successfully with Aikido Safe Chain protection"
62+
echo "📦 No malicious packages detected"

public/mockServiceWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* - Please do NOT modify this file.
88
*/
99

10-
const PACKAGE_VERSION = '2.9.0'
10+
const PACKAGE_VERSION = '2.10.2'
1111
const INTEGRITY_CHECKSUM = 'f5825c521429caf22a4dd13b66e243af'
1212
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
1313
const activeClientIds = new Set()

0 commit comments

Comments
 (0)