File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -3,37 +3,41 @@ name: OpenID Connect Test
33on :
44 push :
55 branches :
6- - ' **'
6+ - master
7+ # Triggers the workflow on labeled PRs only.
8+ pull_request_target :
9+ types : [ labeled ]
10+ # Ensures that only the latest commit is running for each PR at a time.
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
715permissions :
816 id-token : write
9- contents : read
10- env :
11- JFROG_CLI_LOG_LEVEL : DEBUG
1217
1318jobs :
1419 OIDC-Test :
15- # TODO return after testings
16- # if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push'
17- name : OIDC-Access integration test
20+ if : contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push'
21+ name : OIDC-Access integration test (${{ matrix.os }})
1822 strategy :
1923 fail-fast : false
2024 matrix :
2125 os : [ ubuntu, windows, macos ]
22- runs-on : ubuntu -latest
26+ runs-on : ${{ matrix.os }} -latest
2327 steps :
2428 - name : Checkout Repository
2529 uses : actions/checkout@v4
26- # TODO this is for testing purpose before release, remove it after
30+ with :
31+ ref :
32+ ${{ github.event.pull_request.head.ref || github.sha }}
33+
2734 - name : Setup JFrog CLI
2835 id : setup-jfrog-cli
2936 uses : ./
3037 env :
3138 JF_URL : ${{ secrets.JFROG_PLATFORM_URL }}
32- JF_ACCESS_TOKEN : ${{ secrets.JFROG_ACCESS_TOKEN }}
3339 with :
3440 oidc-provider-name : setup-jfrog-cli-test
35- download-repository : " generic-local-eyal"
36- version : ' 4.0.0'
3741
3842 - name : Test JFrog CLI
3943 run : |
You can’t perform that action at this time.
0 commit comments