From f34a7bf93e1c0c458ff2257582bc273485400095 Mon Sep 17 00:00:00 2001 From: Andrew Dmytrenko Date: Thu, 6 Jun 2024 13:46:19 +0300 Subject: [PATCH] add api inputs --- .github/workflows/build.yml | 9 +++++++++ .github/workflows/gas-test.yml | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 08fc8ef..15be90a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,12 @@ on: codecov_token: description: 'Codecov token' required: true + bscscan_api_key: + description: 'BSCSCAN token' + required: false + cmc_api_key: + description: 'CMC token' + required: false jobs: setup: @@ -14,6 +20,9 @@ jobs: test: needs: setup uses: ./.github/workflows/gas-test.yml + secrets: + bscscan_api_key: ${{ secrets.BSCSCAN_API_KEY }} + cmc_api_key: ${{ secrets.CMC_API_KEY }} slither-test: needs: setup diff --git a/.github/workflows/gas-test.yml b/.github/workflows/gas-test.yml index 6d5de65..1b6fc13 100644 --- a/.github/workflows/gas-test.yml +++ b/.github/workflows/gas-test.yml @@ -2,6 +2,13 @@ name: Gas Test on: workflow_call: + secrets: + bscscan_api_key: + description: 'BSCSCAN token' + required: false + cmc_api_key: + description: 'CMC token' + required: false jobs: Test: