Skip to content

Commit 985108a

Browse files
committed
chore(ci): Trusted Publishing
1 parent 7a2840c commit 985108a

File tree

3 files changed

+15
-45
lines changed

3 files changed

+15
-45
lines changed

.github/workflows/create-release.yaml

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
environment:
1818
name: release
1919
steps:
20+
- uses: bullfrogsec/bullfrog@1831f79cce8ad602eef14d2163873f27081ebfb3 # v0.8.4
21+
2022
- name: Checkout code
21-
uses: actions/checkout@v4
23+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2224
with:
2325
fetch-depth: 0
2426

@@ -118,7 +120,7 @@ jobs:
118120
fi
119121
120122
- name: Setup SSH
121-
uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387
123+
uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1
122124
with:
123125
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
124126

@@ -132,7 +134,7 @@ jobs:
132134
git push
133135
134136
- name: Create Release
135-
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191
137+
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
136138
env:
137139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138140
with:
@@ -144,23 +146,13 @@ jobs:
144146
draft: false
145147
prerelease: false
146148

147-
- name: Load npm secret
148-
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0
149-
with:
150-
# Export loaded secrets as environment variables
151-
export-env: true
152-
env:
153-
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
154-
# You may need to change this to your vault name and secret name
155-
# Refer to it by calling env.NPM_TOKEN
156-
# This token is also limited by IP to ONLY work on the runner
157-
NPM_TOKEN: op://npm-deploy/npm-runner-token/secret
158-
159149
- name: Publish package to npm
160-
uses: actions/setup-node@v4
150+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
161151
with:
162152
node-version: "20.x"
163153
registry-url: "https://registry.npmjs.org"
164-
- run: npm publish --provenance --access public
165-
env:
166-
NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }}
154+
155+
- name: Install npm
156+
run: npm install -g npm@latest
157+
158+
- run: npm publish

.github/workflows/semgrep.yml

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

.github/workflows/trufflehog.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ jobs:
1616
run:
1717
shell: bash
1818
steps:
19+
- uses: bullfrogsec/bullfrog@1831f79cce8ad602eef14d2163873f27081ebfb3 # v0.8.4
20+
1921
- name: Checkout code
20-
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
22+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2123
with:
2224
fetch-depth: 0
2325

2426
- name: TruffleHog OSS
2527
id: trufflehog
26-
uses: trufflesecurity/trufflehog@b0fd951652a50ffb1911073f0bfb6a8ade7afc37
28+
uses: trufflesecurity/trufflehog@ad6fc8fb446b8fafbf7ea8193d2d6bfd42f45690 # v3.90.11
2729
continue-on-error: true
2830
with:
2931
path: ./

0 commit comments

Comments
 (0)