Repository navigation
chore(ci): repoint push-email-notify to smtp-notify-action #59
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/nesy-solver
Length of output: 3190
🌐 Web query:
GitHub Actions workflow permissions contents read GITHUB_TOKEN third-party action official documentation💡 Result:
GitHub provides the GITHUB_TOKEN as a short-lived, repository-scoped authentication token for workflows [1][2]. To maintain security and follow the principle of least privilege, you should explicitly define the minimum permissions required by your workflow or individual jobs using the permissions key [3][4]. When using third-party actions, it is a recommended security practice to restrict these permissions [5][6]. By default, the GITHUB_TOKEN may have broader access than necessary; you can override this by setting the permissions key at the top level of your workflow or within specific jobs [7][4]. If you define the permissions key, any permission not explicitly listed is set to none [2][4]. For example, to grant only read access to repository contents, use the following configuration [2][8]: permissions: contents: read For maximum security, some security guides recommend starting with permissions: {} at the workflow level to disable all permissions by default, and then adding only the specific, required permissions for each job [6][9]. Key points for managing GITHUB_TOKEN permissions: - Default Settings: Repository and organization administrators can set the default permissions for the GITHUB_TOKEN in repository or organization settings (e.g., restricted to read-only contents) [7][2]. - Workflow Override: The permissions defined in your workflow file override the repository-level default settings [7][4]. - Third-Party Actions: Because third-party actions can access the GITHUB_TOKEN context, granting broad permissions poses a supply chain risk [5][10]. Always audit third-party actions, pin them to a specific commit SHA rather than a tag, and grant them only the minimum necessary permissions [5][6][9]. - Read vs Write: Specifying read automatically includes read access; specifying write grants both read and write access [4][8].
Citations:
🏁 Script executed:
Repository: hyperpolymath/nesy-solver
Length of output: 6224
Remove the unnecessary repository-read token permission.
The pinned composite action only downloads and executes the SMTP binary. It does not access repository contents or the GitHub API. Set
permissions: {}. If the action is compromised,contents: readcan otherwise expose private repository contents.🤖 Prompt for AI Agents