Skip to content

Commit f02f608

Browse files
committed
chore: move proposer-private-key and safe-api-key to secrets in workflow inputs
1 parent 7c00a1a commit f02f608

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/safe-transaction.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
name: 'Safe Transaction Proposer'
2-
32
on:
43
workflow_call:
54
inputs:
6-
proposer-private-key:
7-
description: 'Private key of the proposer wallet'
8-
required: true
9-
type: string
105
rpc-url:
116
description: 'RPC URL for the blockchain network'
127
required: true
@@ -19,10 +14,6 @@ on:
1914
description: 'Target address for the transaction'
2015
required: true
2116
type: string
22-
safe-api-key:
23-
description: 'Safe API key for transaction service'
24-
required: true
25-
type: string
2617
chain-id:
2718
description: 'Chain ID of the blockchain network (default: 42161 for Arbitrum)'
2819
required: false
@@ -38,6 +29,13 @@ on:
3829
required: false
3930
default: '0x'
4031
type: string
32+
secrets:
33+
proposer-private-key:
34+
description: 'Private key of the proposer wallet'
35+
required: true
36+
safe-api-key:
37+
description: 'Safe API key for transaction service'
38+
required: true
4139
outputs:
4240
safe-tx-hash:
4341
description: 'Hash of the Safe transaction'
@@ -75,11 +73,11 @@ jobs:
7573
run: node dist/index.js
7674
working-directory: ./safe-transaction
7775
env:
78-
INPUT_PROPOSER_PRIVATE_KEY: ${{ inputs.proposer-private-key }}
76+
INPUT_PROPOSER_PRIVATE_KEY: ${{ secrets.proposer-private-key }}
77+
INPUT_SAFE_API_KEY: ${{ secrets.safe-api-key }}
7978
INPUT_RPC_URL: ${{ inputs.rpc-url }}
8079
INPUT_SAFE_ADDRESS: ${{ inputs.safe-address }}
8180
INPUT_TARGET_ADDRESS: ${{ inputs.transaction-target-address }}
82-
INPUT_SAFE_API_KEY: ${{ inputs.safe-api-key }}
8381
INPUT_CHAIN_ID: ${{ inputs.chain-id }}
8482
INPUT_TRANSACTION_VALUE: ${{ inputs.transaction-value }}
8583
INPUT_TRANSACTION_DATA: ${{ inputs.transaction-data }}

0 commit comments

Comments
 (0)