Skip to content

Commit e3f6999

Browse files
committed
Change integration tests
1 parent d6b8a03 commit e3f6999

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/oidc-integration-test.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,17 @@ permissions:
1313
id-token: write
1414
contents: read
1515

16-
env:
17-
JFROG_CLI_LOG_LEVEL: DEBUG
18-
1916
jobs:
2017
oidc-test:
21-
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name == 'push'
2218
strategy:
2319
fail-fast: true
2420
matrix:
2521
os: [ubuntu, macos, windows]
2622
cli-version: ['2.74.1', '2.75.0']
2723
runs-on: ${{ matrix.os }}-latest
2824
name: OIDC Test - ${{ matrix.cli-version }} on ${{ matrix.os }}
25+
env:
26+
JFROG_CLI_LOG_LEVEL: DEBUG
2927

3028
steps:
3129
- name: Checkout Repository
@@ -41,32 +39,34 @@ jobs:
4139
- name: Create OpenID Connect integration
4240
shell: bash
4341
run: |
44-
curl -X POST "${{ secrets.JFROG_PLATFORM_URL }}/access/api/v1/oidc" -H "Content-Type: application/json" -H "Authorization: Bearer ${{ secrets.JFROG_PLATFORM_RT_TOKEN }}" -d '{
45-
"name": "${{ steps.gen-oidc.outputs.oidc_provider_name }}",
46-
"issuer_url": "https://token.actions.githubusercontent.com",
47-
"provider_type": "GitHub",
48-
"enable_permissive_configuration": "true",
49-
"description": "Test configuration for CLI version ${{ matrix.cli-version }}"
50-
}'
42+
curl -X POST "${{ secrets.JFROG_PLATFORM_URL }}/access/api/v1/oidc" \
43+
-H "Content-Type: application/json" \
44+
-H "Authorization: Bearer ${{ secrets.JFROG_PLATFORM_RT_TOKEN }}" \
45+
-d '{
46+
"name": "${{ steps.gen-oidc.outputs.oidc_provider_name }}",
47+
"issuer_url": "https://token.actions.githubusercontent.com",
48+
"provider_type": "GitHub",
49+
"enable_permissive_configuration": "true",
50+
"description": "Test configuration for CLI version ${{ matrix.cli-version }}"
51+
}'
5152
5253
- name: Create OIDC Identity Mapping
5354
shell: bash
5455
run: |
5556
curl -X POST "${{ secrets.JFROG_PLATFORM_URL }}/access/api/v1/oidc/${{ steps.gen-oidc.outputs.oidc_provider_name }}/identity_mappings" \
56-
-H 'Content-Type: application/json' \
57-
-H 'Authorization: Bearer ${{ secrets.JFROG_PLATFORM_RT_TOKEN }}' \
58-
-d '{
59-
"name": "oidc-test-mapping",
60-
"priority": "1",
61-
"claims": {
62-
"repository": "${{ github.repository_owner }}/setup-jfrog-cli"
63-
},
64-
"token_spec": {
65-
"scope": "applied-permissions/groups:readers",
66-
"expires_in": 30
67-
}
68-
}'
69-
57+
-H 'Content-Type: application/json' \
58+
-H "Authorization: Bearer ${{ secrets.JFROG_PLATFORM_RT_TOKEN }}" \
59+
-d '{
60+
"name": "oidc-test-mapping",
61+
"priority": "1",
62+
"claims": {
63+
"repository": "${{ github.repository_owner }}/setup-jfrog-cli"
64+
},
65+
"token_spec": {
66+
"scope": "applied-permissions/groups:readers",
67+
"expires_in": 30
68+
}
69+
}'
7070
7171
- name: Setup JFrog CLI
7272
id: setup-jfrog-cli
@@ -93,4 +93,4 @@ jobs:
9393
if: always()
9494
run: |
9595
curl -X DELETE "${{ secrets.JFROG_PLATFORM_URL }}/access/api/v1/oidc/${{ steps.gen-oidc.outputs.oidc_provider_name }}" \
96-
-H "Authorization: Bearer ${{ secrets.JFROG_PLATFORM_RT_TOKEN }}"
96+
-H "Authorization: Bearer ${{ secrets.JFROG_PLATFORM_RT_TOKEN }}"

0 commit comments

Comments
 (0)