Sign inĐăng nhậpGet startedBắt đầu miễn phíSign upBắt đầuOpen consoleVào Console

HomeTrang chủ · IntegrationsTích hợp · GitHub ActionGitHub Action

Install guideHướng dẫn cài đặt
Available nowCó ngay

Idemcore Receipt Verify for GitHub ActionsIdemcore Receipt Verify cho GitHub Actions

Check signed receipts in CI, offline, with no API key.Kiểm biên nhận có chữ ký trong CI, khi offline, không cần khóa API.

Idemcore Receipt Verify is a GitHub Action that checks signed Idemcore receipts stored in your repository, on every push or pull request. The check is free, runs inside the job, and does not need an API key.Idemcore Receipt Verify là GitHub Action kiểm biên nhận Idemcore có chữ ký đã lưu trong kho của bạn, mỗi lần đẩy hoặc mở pull request. Việc kiểm miễn phí, chạy trong job, và không cần khóa API.

Install stepsCác bước cài đặt

  1. 1
    Open the GitHub repository where you keep Idemcore receipts.Mở kho GitHub nơi bạn lưu biên nhận Idemcore.
  2. 2
    Add a workflow file that checks out the repository and runs idemcore/verify-action@v1.Thêm tệp workflow để checkout kho và chạy idemcore/verify-action@v1.
  3. 3
    Set path to the receipts you want checked, for example receipts/**/*.{json,jsonl,ndjson,log}.Đặt path tới các biên nhận cần kiểm, ví dụ receipts/**/*.{json,jsonl,ndjson,log}.
  4. 4
    Push the workflow, or open a pull request, and read the pass/fail table in the job summary.Đẩy workflow, hoặc mở pull request, rồi đọc bảng đạt/trượt trong tóm tắt job.

PrerequisitesĐiều kiện cần

  • A GitHub repository where you can add a workflow.
  • Receipt files, public token logs, audit exports, or a public share link to check. No API key.
  • Một kho GitHub cho phép bạn thêm workflow.
  • Tệp biên nhận, log token công khai, bản xuất kiểm toán, hoặc liên kết chia sẻ công khai để kiểm. Không cần khóa API.

A minimal working exampleVí dụ tối thiểu chạy được

Add a workflow that checks out the repository and runs the published action:Thêm workflow để checkout kho và chạy action đã phát hành:

name: Check AI receipts

on:
  push:
  pull_request:

jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Verify Idemcore receipts
        uses: idemcore/verify-action@v1
        with:
          path: "receipts/**/*.{json,jsonl,ndjson,log}"

The action writes a pass/fail table to the job summary. The step fails when a receipt has been altered. Other JSON files, such as package.json, are skipped.Action ghi bảng đạt/trượt vào tóm tắt job. Bước thất bại khi biên nhận đã bị sửa. Các tệp JSON khác, như package.json, sẽ bị bỏ qua.

Options and configurationTùy chọn và cấu hình

InputDefaultWhat it does
path**/*.{json,jsonl,ndjson,log}Glob, or comma-separated globs, relative to the workspace.
keysbundled Idemcore production public keyOptional path to a JWK, JWK array or JWKS file of keys you trust.
fail_on_errortrueFail the step when any check fails.
require_filestrueFail when the glob matches no checkable files.
Đầu vàoMặc địnhViệc nó làm
path**/*.{json,jsonl,ndjson,log}Glob, hoặc nhiều glob cách nhau bằng dấu phẩy, tính từ thư mục làm việc.
keyskhóa công khai production Idemcore đi kèmĐường dẫn tùy chọn tới tệp JWK, mảng JWK hoặc JWKS gồm các khóa bạn tin.
fail_on_errortrueLàm bước thất bại khi một lần kiểm trượt.
require_filestrueThất bại khi glob không khớp tệp nào kiểm được.

TroubleshootingXử lý sự cố

The step fails because no files were found.Bước thất bại vì không tìm thấy tệp nào.

Set path to files that actually exist in the repository, or set require_files to false if an empty match should pass.Hãy đặt path tới các tệp thực sự có trong kho, hoặc đặt require_files thành false nếu không khớp tệp nào vẫn được coi là đạt.

A receipt check fails.Một lần kiểm biên nhận bị trượt.

The action reports that the file is not a genuine, unchanged receipt. Confirm you committed the original signed receipt, not an edited copy.Action báo tệp không phải biên nhận gốc, chưa bị sửa. Hãy chắc bạn đã commit đúng biên nhận có chữ ký gốc, không phải bản đã chỉnh.

Do I need an Idemcore API key?Tôi có cần khóa API Idemcore không?

No. Verifying receipts with this action is always free and does not use a key. You only need a key if you also generate new receipts through the API or an SDK.Không. Kiểm biên nhận bằng action này luôn miễn phí và không dùng khóa. Bạn chỉ cần khóa nếu cũng tạo biên nhận mới qua API hoặc SDK.

Version and changelogPhiên bản và nhật ký thay đổi

Current published version: v1.0.0.Phiên bản đang phát hành: v1.0.0.

Release v1.0.0 is on GitHub Marketplace and GitHub releases. Also see the site changelog.Bản v1.0.0 có trên GitHub Marketplace và GitHub releases. Xem thêm nhật ký thay đổi trên site.

SupportHỗ trợ

Questions about install, API keys or receipts: support@idemcore.net. Security reports: security@idemcore.net. Sales and pilots: dev@idemcore.net.Câu hỏi về cài đặt, khóa API hoặc biên nhận: support@idemcore.net. Báo cáo bảo mật: security@idemcore.net. Bán hàng và thí điểm: dev@idemcore.net.

support@idemcore.net · Contact page →Trang liên hệ →

Package registryKho gói

View on GitHub Marketplace →Xem trên GitHub Marketplace →

How to get an API keyCách lấy khóa API

The action never uses an API key. It checks receipts, public token logs and audit exports already stored in the repository, or a public share link.Action không bao giờ dùng khóa API. Nó kiểm biên nhận, log token công khai và bản xuất kiểm toán đã lưu trong kho, hoặc một liên kết chia sẻ công khai.

To create a key, sign in to the console and create an API key. It starts with ick_ and is shown once, so keep it on your server. Then set IDEMCORE_API_KEY in the environment.Để tạo khóa, đăng nhập console và tạo khóa API. Khóa bắt đầu bằng ick_ và chỉ hiện một lần, hãy giữ nó ở phía máy chủ. Sau đó đặt IDEMCORE_API_KEY trong biến môi trường.

Get a key on this site →Lấy khóa trên trang này → Open the console →Mở console →

How to check a receiptCách kiểm biên nhận

The action writes a pass/fail table to the job summary and fails the step when a receipt has been altered. You can also open a public share on the receipt page at idemcore.net/r/.Action ghi bảng đạt/trượt vào tóm tắt job và làm bước thất bại khi biên nhận đã bị sửa. Bạn cũng có thể mở bản chia sẻ công khai trên trang biên nhận tại idemcore.net/r/.

You can also open a public share on the receipt page, or use the check page on this site.Bạn cũng có thể mở bản chia sẻ công khai trên trang biên nhận, hoặc dùng trang kiểm trên site này.

Receipt page →Trang biên nhận → Check a receipt →Kiểm một biên nhận →