From 9af2b1205e869d9e144ac0ec0d76c6e11d8c3444 Mon Sep 17 00:00:00 2001 From: Swanny Date: Wed, 8 May 2024 16:54:00 -0400 Subject: [PATCH 1/2] fix(cd): hardcode inputs for testing --- .github/workflows/cd.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 6fabc01..2935e95 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -30,7 +30,6 @@ on: - dev permissions: - packages: write contents: write id-token: write @@ -43,10 +42,13 @@ jobs: deploy-contract: uses: init4tech/actions/.github/workflows/solidity-deployment.yml@main needs: auto-release + permissions: + contents: read + id-token: write with: - network: ${{ github.event.inputs.network }} - environment: ${{ github.event.inputs.environment }} - forge-deployment-script: "DeployZenith" + network: holesky + environment: dev + forge-deployment-script: DeployZenith secrets: aws-deployer-role: ${{ secrets.AWS_DEPLOYER_ROLE }} holesky-kms-key-id: ${{ secrets.HOLESKY_DEPLOYER_KEY_ID }} From b9d45a28adf332400fb8793f266c6856e63b15ad Mon Sep 17 00:00:00 2001 From: Swanny Date: Wed, 8 May 2024 16:56:20 -0400 Subject: [PATCH 2/2] fix(cd): specify permissions per workflow --- .github/workflows/cd.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 2935e95..a510fd3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -29,13 +29,11 @@ on: options: - dev -permissions: - contents: write - id-token: write - jobs: auto-release: uses: init4tech/actions/.github/workflows/auto-release.yml@main + permissions: + contents: write with: generate-tag: true custom-tag: ${{ github.event.inputs.custom-tag }}