-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (47 loc) · 1.36 KB
/
test.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
---
# yamllint disable rule:truthy
name: Test action
on:
pull_request:
paths:
- .github/workflows/test.yaml
- action.yaml
jobs:
jfrog-setup-internal-auth:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: exec jfrog-setup
id: actual
uses: ./
with:
vaultUrl: https://vault.staging.sonar.build:8200
artifactoryRoleSuffix: test
- name: validate
shell: bash
run: jfrog rt ping
jfrog-setup-external-auth:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: get secrets
id: secrets
uses: SonarSource/vault-action-wrapper@7461acdbede91679c5c890485f565c80ef74583e # tag=2.4.3-1
with:
url: https://vault.staging.sonar.build:8200
secrets: |
development/artifactory/token/{REPO_OWNER_NAME_DASH}-test access_token | jf_access_token;
- name: exec jfrog-setup
id: actual
uses: ./
with:
jfrogAccessToken: ${{ fromJSON(steps.secrets.outputs.vault).jf_access_token }}
- name: validate
shell: bash
run: jfrog rt ping