Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
- uses: amannn/action-semantic-pull-request@v6

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semgrep identified an issue in your code:
An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.

To resolve this comment:

✨ Commit Assistant fix suggestion

Suggested change
- uses: amannn/action-semantic-pull-request@v6
- uses: amannn/action-semantic-pull-request@7e7756342d687a84eff23acb7b5bd1c0e7b17750
# Pinned to commit SHA for security: https://github.com/amannn/action-semantic-pull-request/commit/7e7756342d687a84eff23acb7b5bd1c0e7b17750
View step-by-step instructions
  1. Replace the version tag @v6 in uses: amannn/action-semantic-pull-request@v6 with the specific full commit SHA for the version you want to use, such as @7e7756342d687a84eff23acb7b5bd1c0e7b17750.
  2. Find the correct commit SHA by visiting the action's GitHub repository (for example, https://github.com/amannn/action-semantic-pull-request/tags), selecting your desired release or tag, and copying the full 40-character commit hash.
  3. Update the uses line to: uses: amannn/action-semantic-pull-request@<commit-sha> (replace <commit-sha> with the actual SHA you copied).
  4. Save the changes.

Pinning GitHub Actions to a specific commit SHA ensures the action code cannot change unexpectedly in the future, which reduces the risk of using compromised third-party code.

💬 Ignore this finding

Reply with Semgrep commands to ignore this finding.

  • /fp <comment> for false positive
  • /ar <comment> for acceptable risk
  • /other <comment> for all other reasons

Alternatively, triage in Semgrep AppSec Platform to ignore the finding created by third-party-action-not-pinned-to-commit-sha.

You can view more details about this finding in the Semgrep AppSec Platform.

with:
validateSingleCommit: true
env:
Expand Down
Loading