Skip to content

Commit b774153

Browse files
Set repo variable for whitesource project
1 parent 4281ca0 commit b774153

File tree

2 files changed

+5
-85
lines changed

2 files changed

+5
-85
lines changed

.github/workflows/push.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
push:
66
branches:
77
- "main"
8-
98
permissions:
109
contents: write
1110
packages: write
@@ -27,19 +26,11 @@ jobs:
2726
uses: actions/checkout@v4
2827
with:
2928
fetch-depth: 0
30-
- name: Checkout SolaceDev/maas-build-actions
31-
uses: actions/checkout@v4
32-
with:
33-
repository: SolaceDev/maas-build-actions
34-
ref: refs/heads/master
35-
path: maas-build-actions
36-
token:
37-
${{ secrets.PACKAGES_ADMIN_TOKEN }}
38-
#Packages Github token is required to checkout the private repository
3929
- uses: actions/setup-node@v4
4030
with:
4131
node-version: 20
4232
cache: "npm"
33+
4334
- name: Install dependencies
4435
run: |
4536
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
@@ -74,7 +65,7 @@ jobs:
7465
continue-on-error: true
7566
with:
7667
whitesource_api_key: ${{ secrets.WHITESOURCE_API_KEY }}
77-
whitesource_product_name: "maas_libraries"
68+
whitesource_product_name: ${{ vars.WHITESOURCE_PRODUCT_NAME }}
7869
whitesource_project_name: ${{ github.event.repository.name }}
7970
target_directory: "."
8071

@@ -87,7 +78,8 @@ jobs:
8778
uses: "actions/checkout@v4"
8879
with:
8980
ref: ${{ github.ref }}
90-
token: ${{ secrets.PACKAGES_ADMIN_TOKEN }}
81+
token: ${{ secrets.COMMIT_KEY }}
82+
fetch-depth: 0
9183

9284
- name: "cat package.json"
9385
run: cat ./package.json
@@ -102,6 +94,6 @@ jobs:
10294
commit-message: "CI: bumps version to {{version}} [skip ci]" # Add skip ci tag
10395
env:
10496
#Required for version bumping and by-passing branch protection
105-
GITHUB_TOKEN: ${{ secrets.PACKAGES_ADMIN_TOKEN }}
97+
GITHUB_TOKEN: ${{ secrets.COMMIT_KEY }}
10698
- name: "cat package.json"
10799
run: cat ./package.json

migration_to_opensource.md

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)