
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
取消了账号密码登录方式,改用 cookie 登录
所以需要各位在网页上去获取 session 设置到 action 变量中
新增一个名为 SESSION 的变量

值为力扣站点下的 LEETCODE_SESSION 这个 cookie

设置完成之后可以手动执行一下 试试效果
cookie 失效之后需要重新设置
自动完成每日任务领取积分
首先拉取用户已下发的任务, 下面的任务没有的会跳过执行
日常登录 1 积分
阅读 3 篇题解 1 积分(暂时取消)
每日登录领取 1 积分
保存一则学习笔记 3 积分
阅读 3 章 LeetBook 领取 2 积分
获取 2 本免费的 LeetBook 领取 3 积分
点赞一则 LeetBook 讨论 领取 1 积分
# clone project
git clone https://github.com/xjq7/lc-helper
# cd folder
cd lc-helper
# 安装 pnpm, 已安装的话就跳过
npm install pnpm -g
# 依赖安装
pnpm install
pnpm dev <session>
# 编译
pnpm tsc
# link 到全局
npm link --force
# 运行
lchl start <session>
目前只支持账号密码登录
# 全局安装
npm install -g lchl
# or
yarn global add lchl
# 运行
lchl start <session>
# example
lchl start 你的 session cookie
通过 Github Action 每天凌晨 00:50 分自动执行, 需要提前配置账号密码在 Action Secret 中
fork 本项目
配置账号密码用于工具登录
创建 Github action Secret
进入你 fork 的项目, 找到 Settings - Security - Secrets - Actions
然后 点击新建 New repository secret
填写一个 Name 为 SESSION 的 key, Secret 为你的 session cookie, session cookie 的获取方式请看 README 顶部

点击 Actions, 找到定时任务 auto action runner
第一次接入手动触发任务测试是否有问题
点击 Run workflow 手动触发任务
点击进入 当前执行的 Action 中查看日志
run 环节会打印执行结果
后续每天 00:50 自动执行, 时间可能有误差, 00:50 ~ 01:00 之间
FAQs
力扣限制又严格了一些, 需要抓包 App 获取两个认证 token
The npm package lchl receives a total of 12 weekly downloads. As such, lchl popularity was classified as not popular.
We found that lchl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.