Skip to content

Commit 1bf4fbb

Browse files
authored
Merge pull request #1037 from OutSystems/ROU-11492-fix
ROU-11492: Fixing access to secrets
2 parents ac39a7f + 9f0d281 commit 1bf4fbb

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
name: 'setup-gpg'
22
description: 'Prepare to get following commits signed'
33

4+
inputs:
5+
gpgPriv:
6+
description: 'GPG Private key'
7+
required: true
8+
default: ''
9+
gpgPassPhrase:
10+
description: 'GPG passphrase'
11+
required: false
12+
default: '""'
13+
414
runs:
515
using: composite
616
steps:
717
- name: Import and load GPG key
818
uses: crazy-max/ghaction-import-gpg@v6
919
with:
10-
gpg_private_key: ${{ secrets.GPG_SIGN_KEY }}
11-
passphrase: ${{ secrets.GPG_PASSPHRASE }}
20+
gpg_private_key: ${{ inputs.gpgPriv }}
21+
passphrase: ${{ inputs.gpgPassPhrase }}
1222
git_user_signingkey: true
1323
git_commit_gpgsign: true

.github/os-git-actions/signed-commit/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,23 @@ inputs:
1313
description: 'Defines if a `git add.` should be made or not.'
1414
required: false
1515
default: false
16+
gpgPriv:
17+
description: 'GPG Private key'
18+
required: true
19+
default: ''
20+
gpgPassPhrase:
21+
description: 'GPG passphrase'
22+
required: false
23+
default: '""'
1624

1725
runs:
1826
using: composite
1927
steps:
2028
- name: Setup GPG to sign commits
2129
uses: ./.github/os-git-actions/setup-gpg/
30+
with:
31+
gpgPriv: ${{ inputs.gpgPriv }}
32+
gpgPassPhrase: ${{ inputs.gpgPassPhrase }}
2233

2334
- name: Perform git commit
2435
uses: ./.github/os-git-actions/manual-commit/

.github/workflows/PreRelease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,5 @@ jobs:
119119
branch: dev
120120
message: 'Updated into v${{ inputs.new-dev-release }} [skip ci]'
121121
newFiles: true
122+
gpgPriv: ${{ secrets.GPG_SIGN_KEY }}
123+
gpgPassPhrase: ${{ secrets.GPG_PASSPHRASE }}

0 commit comments

Comments
 (0)