Skip to content

Commit fe1c82b

Browse files
authored
chore(ci): Fix workflow secrets (#656)
1 parent 9b962c1 commit fe1c82b

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ jobs:
1414
build-and-test:
1515
uses: opentdf/web-sdk/.github/workflows/reusable_build-and-test.yaml@main
1616
secrets:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
17+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/deliver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
pages: write
2121
uses: opentdf/web-sdk/.github/workflows/reusable_deliver.yaml@main
2222
secrets:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/reusable_build-and-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ env:
88
99
on:
1010
workflow_call:
11+
secrets:
12+
SONAR_TOKEN:
13+
required: true
1114

1215
jobs:
1316
ccc:
@@ -83,7 +86,7 @@ jobs:
8386
if: fromJSON(env.do_sonarscan)
8487
uses: SonarSource/sonarqube-scan-action@2500896589ef8f7247069a56136f8dc177c27ccf #v5.2.0
8588
env:
86-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
GITHUB_TOKEN: ${{ github.token }}
8790
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8891

8992
cli:

.github/workflows/reusable_deliver.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Reusable worflow: Deliver Client to npm registry"
22

33
on:
44
workflow_call:
5+
secrets:
6+
NPM_TOKEN:
7+
required: true
58

69
# Default empty permissions for all jobs
710
permissions: {}

0 commit comments

Comments
 (0)