
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@ciderjs/clasp-auth
Advanced tools
Google Apps Script (GAS) を GitHub Actions で CI/CD するための clasp 認証補助ツール。
ローカルで clasp login した認証情報を GitHub Secrets にアップロード/削除し、CI/CD 環境で .clasprc.json を自動生成します。
このツールを利用するには以下が必要です:
GitHub CLI (gh)
gh auth login を実行し、GitHub にログインしておく必要がありますGoogle Apps Script CLI (clasp)
clasp login を実行し、Google アカウントでログインしておく必要があります注意事項
CLI
upload: ローカルの ~/.clasprc.json を読み込み、JSON 文字列として GitHub Secrets (CLASPRC_JSON) にアップロードdelete: 登録済みの Secret (CLASPRC_JSON) を削除--yes オプションで確認プロンプトをスキップ可能GitHub Action
CLASPRC_JSON) から .clasprc.json を生成し、CI/CD 環境で clasp push を実行可能にするグローバルインストール:
npm install -g @ciderjs/clasp-auth
プロジェクトローカル:
npm install --save-dev @ciderjs/clasp-auth
まずローカルで clasp login を実行し、~/.clasprc.json を生成します。
その後、以下のコマンドで GitHub Secrets にアップロードします:
npx @ciderjs/clasp-auth upload <owner/repo>
例:
npx @ciderjs/clasp-auth upload ciderjs/city-gas
登録される Secret:
CLASPRC_JSON … .clasprc.json の内容を JSON 文字列としてBase64エンコードし保存登録済みの Secret を削除するには:
npx @ciderjs/clasp-auth delete <owner/repo>
確認プロンプトをスキップする場合:
npx @ciderjs/clasp-auth delete <owner/repo> --yes
Workflow 内で Secret をファイルに復元し、clasp が利用できるようにします。
name: Deploy GAS
on:
push:
branches: [ "main" ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
+ - name: Setup clasp auth
+ uses: ciderjs/clasp-auth@v0.1.3
+ with:
+ json: {{ secrets.CLASPRC_JSON }}
- name: Install clasp
run: npm install -g @google/clasp
- name: Push to GAS
run: clasp push
# Secrets をアップロード
clasp-auth upload myorg/private-gas-project
# GitHub Actions で使用
# (workflow 例を参照)
# プロジェクトごとに異なるリポジトリにアップロード
clasp-auth upload myorg/project-a
clasp-auth upload myorg/project-b
# ビルド
pnpm build
# テスト (Vitest)
pnpm test
# ローカルで CLI を試す
npm link
clasp-auth upload <owner/repo>
CLASPRC_JSON) のみを利用するため、管理が容易.clasprc.json の内部構造変更にも強いpermissions を明示的に設定すること.clasprc.json の内容をログに出力しないことclasp login をやり直し、Secrets をローテーションすることgh: command not foundGitHub CLI がインストールされていません。こちらからインストールしてください。
No .clasprc.json foundclasp login を実行して認証情報を生成してください。
Permission deniedgh auth login を実行し、適切な権限でログインしてください。
Repository not foundリポジトリ名が正しいか確認してください (形式: owner/repo)。
v0.1.0)NPM_TOKEN が必要)MIT
FAQs
Manage clasp credential data to use GitHub Actions secrets
The npm package @ciderjs/clasp-auth receives a total of 0 weekly downloads. As such, @ciderjs/clasp-auth popularity was classified as not popular.
We found that @ciderjs/clasp-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.