forked from cmancone/akeyless-action
-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (34 loc) · 973 Bytes
/
static-secrets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'Static Secrets'
# Docs => https://docs.akeyless.io/docs/create-secret
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'src/**/*'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/static-secrets.yml'
jobs:
static_secret:
runs-on: ubuntu-latest
name: Fetch static secrets
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch static secret from AKeyless
id: fetch-secrets
uses: ./
with:
access-id: ${{ secrets.AKEYLESS_ACCESS_ID }}
static-secrets: '{"/DevTools/my-static-secret":"my_static_secret"}'
- name: Verify Job Outputs
run: echo "Your output secret is ${{ steps.fetch-secrets.outputs.my_static_secret }}"
- name: Verify Environment Variables
run: echo "Your environment secret is ${{ env.my_static_secret }}"