0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GitHub Actions で、Poetry を使用しているプロジェクトに対して Snyk を適用する

Posted at

はじめに

  • この記事では、GitHub Actions で、Poetry を使用しているプロジェクトに対して Snyk を適用する方法について、メモとして残します。

適用手順

Auth Token の設定

ワークフローの作成

  • snyk/actions/python@masterargs--file に、poetry.lock のパスを設定する。
.github/workflows/backend-test.yml
name: backend-test
on:
  push:
    paths: backend/**
jobs:
  test:
    runs-on: ubuntu-22.04
    steps:
      - name: sparse checkout
        uses: actions/checkout@v3
        with:
          sparse-checkout: |
            backend
      - name: snyk
        uses: snyk/actions/python@master
        env:
          SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
        with:
          command: test
          args: --severity-threshold=critical --file=backend/poetry.lock

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?