Skip to content

Commit c32bc83

Browse files
authored
[SINT-3848] 🔒 Pin GitHub Actions to specific SHA versions for enhanced security (#7400)
## 🔒 Security Enhancement: GitHub Actions Pinning ### 📋 What This PR Does This PR automatically pins GitHub Actions references from tag-based versions (e.g., `@v4`) to their corresponding SHA hashes (e.g., `@abc123...`) while preserving the original tag as a comment for readability. No functional changes to your workflows - they'll work exactly the same way ### 🎯 Why This Matters **Supply Chain Security**: Pinning GitHub Actions to specific SHA hashes prevents supply chain security and reliability risks because git tags are mutable and can be moved to point to different commits by malicious actors or maintainers, potentially introducing vulnerabilities or breaking changes into workflows. ### 🤖 Keep Actions Updated with Dependabot Now that your actions are pinned to SHA hashes, you can enable Dependabot to automatically create PRs when new versions are available. Add this configuration to your repository: **Create or update `.github/dependabot.yml`:** ```yaml version: 2 updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" open-pull-requests-limit: 10 commit-message: prefix: "chore" include: "scope" ``` This will: - 🔄 Check for action updates weekly - 📬 Create PRs automatically when newer versions are available - 🏷️ Update both the SHA hash and the comment with the new tag - 🎯 Keep your actions secure AND up-to-date ### 🤝 Questions or Concerns? For any questions about this security enhancement, please reach out to the **SDL Security team** in the **#sdlc-security** Slack channel. --- *This PR was automatically generated by the GitHub Actions Pinning Tool as part of our ongoing security improvements.*
1 parent 857aec4 commit c32bc83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/datadog-static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616
- name: Check code meets quality standards
1717
id: datadog-static-analysis
18-
uses: DataDog/datadog-static-analyzer-github-action@v1
18+
uses: DataDog/datadog-static-analyzer-github-action@2707598b1182dce1d1792186477b5b4132338e1c # v1.2.3
1919
with:
2020
dd_api_key: ${{ secrets.DD_API_KEY }}
2121
dd_app_key: ${{ secrets.DD_APP_KEY }}

0 commit comments

Comments
 (0)