Skip to content

Commit 546fd7d

Browse files
committed
BUILD-10864: Migrate docker-a3s workflows to sonar-m-docker
- Replace github-ubuntu-latest-m runner with sonar-m-docker - Add config-npm@v1 action for Repox npm registry (self-hosted runners block direct npmjs access) - Remove manual "Configure npm registry" step and ARTIFACTORY_ACCESS_TOKEN vault secret (now handled by config-npm@v1)
1 parent e8c5a7c commit 546fd7d

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/docker-a3s-repox.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919

2020
jobs:
2121
get_build_number:
22-
runs-on: github-ubuntu-latest-s
22+
runs-on: sonar-m-docker
2323
name: Get build number
2424
permissions:
2525
id-token: write
@@ -32,7 +32,7 @@ jobs:
3232

3333
build_and_publish:
3434
name: Build and publish Docker image
35-
runs-on: github-ubuntu-latest-m
35+
runs-on: sonar-m-docker
3636
needs: get_build_number
3737
permissions:
3838
id-token: write
@@ -52,21 +52,17 @@ jobs:
5252
[tools]
5353
node = "24.11.0"
5454
55+
- uses: SonarSource/ci-github-actions/config-npm@v1
56+
5557
- name: Access vault secrets
5658
id: secrets
5759
uses: SonarSource/vault-action-wrapper@v3
5860
with:
5961
secrets: |
60-
development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_ACCESS_TOKEN;
6162
development/artifactory/token/{REPO_OWNER_NAME_DASH}-qa-deployer access_token | ARTIFACTORY_DEPLOY_PASSWORD;
6263
development/artifactory/token/{REPO_OWNER_NAME_DASH}-qa-deployer username | ARTIFACTORY_DEPLOY_USERNAME;
6364
development/github/token/{REPO_OWNER_NAME_DASH}-rspec token | RSPEC_GITHUB_TOKEN;
6465
65-
- name: Configure npm registry
66-
run: |
67-
npm config set //repox.jfrog.io/artifactory/api/npm/:_authToken=${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
68-
npm config set registry https://repox.jfrog.io/artifactory/api/npm/npm/
69-
7066
- name: Install NPM dependencies
7167
run: npm ci
7268

.github/workflows/docker-a3s.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919

2020
jobs:
2121
get_build_number:
22-
runs-on: github-ubuntu-latest-s
22+
runs-on: sonar-m-docker
2323
name: Get build number
2424
permissions:
2525
id-token: write
@@ -32,7 +32,7 @@ jobs:
3232

3333
build_and_publish:
3434
name: Build and publish Docker image
35-
runs-on: github-ubuntu-latest-m
35+
runs-on: sonar-m-docker
3636
needs: get_build_number
3737
environment: ${{ inputs.environment == 'Prod' && 'Prod' || 'Dev5' }}
3838
permissions:
@@ -53,19 +53,15 @@ jobs:
5353
[tools]
5454
node = "24.11.0"
5555
56+
- uses: SonarSource/ci-github-actions/config-npm@v1
57+
5658
- name: Access vault secrets
5759
id: secrets
5860
uses: SonarSource/vault-action-wrapper@v3
5961
with:
6062
secrets: |
61-
development/artifactory/token/{REPO_OWNER_NAME_DASH}-private-reader access_token | ARTIFACTORY_ACCESS_TOKEN;
6263
development/github/token/{REPO_OWNER_NAME_DASH}-rspec token | RSPEC_GITHUB_TOKEN;
6364
64-
- name: Configure npm registry
65-
run: |
66-
npm config set //repox.jfrog.io/artifactory/api/npm/:_authToken=${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
67-
npm config set registry https://repox.jfrog.io/artifactory/api/npm/npm/
68-
6965
- name: Install NPM dependencies
7066
run: npm ci
7167

0 commit comments

Comments
 (0)