From bee37e6c50d8337eb12abdb8e6dda7aae9f3eae4 Mon Sep 17 00:00:00 2001 From: "yoshitomo.yasuno" Date: Mon, 17 Apr 2023 12:08:23 +0900 Subject: [PATCH] scancode with mend --- .github/workflows/mend.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/mend.yml diff --git a/.github/workflows/mend.yml b/.github/workflows/mend.yml new file mode 100644 index 0000000..fad022e --- /dev/null +++ b/.github/workflows/mend.yml @@ -0,0 +1,29 @@ +name: mend +permissions: + contents: read + id-token: write +on: + schedule: + - cron: '30 7 * * 1' + +jobs: + scan-code: + runs-on: ubuntu-20.04 + steps: + - name: Checkout mend action + uses: actions/checkout@v3 + with: + repository: aktsk/mend-action + path: ./.github/actions/mend-action + ssh-key: ${{ secrets.MEND_CHECKOUT_KEY }} + - name: Generate credential of GCP + uses: 'google-github-actions/auth@v1' + with: + workload_identity_provider: ${{ secrets.MEND_GCP_PROVIDER_ID }} + service_account: ${{ secrets.MEND_SERVICE_ACCOUNT }} + - name: Scan repo + uses: ./.github/actions/mend-action + with: + mend_api_key: ${{ secrets.MEND_API_KEY }} + mend_user_key: ${{ secrets.MEND_USER_KEY }} + slack_token: ${{ secrets.MEND_SLACK_TOKEN }}