Skip to content

Commit e59990d

Browse files
fix: use creds from env
1 parent 7038ec6 commit e59990d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/universal-airgapper.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ on:
2727
description: '--config-folder parameter; path to folder, containing config files'
2828
default: '${{ github.workspace }}'
2929
required: false
30-
credentials-file:
31-
description: '--credentials-file parameter; path to credentials file'
32-
default: '${{ secrets.UNIVERSAL_AIRGAPPER_CREDS }}'
33-
required: false
3430
debug:
3531
description: 'Enable debug mode'
3632
default: ''
3733
required: false
34+
credentials-secret-name:
35+
description: 'Name of the secret containing the credentials'
36+
default: 'UNIVERSAL_AIRGAPPER_CREDS'
37+
required: false
3838

3939
jobs:
4040
airgapper:
@@ -56,6 +56,9 @@ jobs:
5656
cat ${{ github.event.inputs.config-folder || github.workspace }}/*.yaml || true
5757
echo "========================================================"
5858
59+
- name: Write credentials file
60+
run: echo "${{ secrets[github.event.inputs.credentials-secret-name] }}" > credentials.yaml
61+
5962
- name: Run Universal Airgapper
6063
run: |
6164
python /home/airgapper/main.py \

0 commit comments

Comments
 (0)