-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
chore(deploy): migrating to leverage electron
GHA to isolate CI/CD token scopes
#9302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
electron/npm-trusted-auth-action
electron
GHA to isolate CI/CD token scopes
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# Auto-setup of NPM_TOKEN env var for for changesets/action | ||
- name: Authenticate to npm registry | ||
uses: electron/npm-trusted-auth-action@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pin to SHA
- name: Authenticate to npm registry | ||
uses: electron/npm-trusted-auth-action@v1 | ||
with: | ||
package-name: 'electron-builder' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure about package structure, is this really the only package that gets published here. I thought this was a monorepo that had a few packages in it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, I need a single token that is able to publish the monorepo topographically via pnpm publish -r
. Is there a way to provide a single token for a list of package-names
?
package-name: 'electron-builder' | ||
|
||
- name: Generate GitHub App token | ||
uses: electron/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pin to SHA
Adding additional security to the repo with 2 new
electron
org actions that generate dynamic tokens as replacements for GITHUB_TOKEN and NPM_TOKEN setups