-
Notifications
You must be signed in to change notification settings - Fork 0
Security: pin GitHub Actions to SHA hashes #17
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -23,10 +23,10 @@ jobs: | |||||
|
|
||||||
| steps: | ||||||
| - name: Checkout | ||||||
| uses: actions/checkout@v4 | ||||||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM RISK The SHA 34e114876b0b11c390a56381ad16ebd13914f8d5 corresponds to v2.4.2. Please use the SHA for the latest v4 release instead.
Suggested change
|
||||||
|
|
||||||
| - name: Setup Node | ||||||
| uses: actions/setup-node@v4 | ||||||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM RISK The SHA 49933ea5288caeca8642d1e84afbd3f7d6820020 corresponds to v3.8.1. To match the intended version v4, use the correct SHA for the latest v4 release.
Suggested change
|
||||||
| with: | ||||||
| node-version: 20 | ||||||
| cache: npm | ||||||
|
|
@@ -39,7 +39,7 @@ jobs: | |||||
| run: npm run build | ||||||
|
|
||||||
| - name: Deploy to gh-pages | ||||||
| uses: peaceiris/actions-gh-pages@v4 | ||||||
| uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4 | ||||||
| with: | ||||||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||||||
| publish_dir: docusaurus/build | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,15 +10,15 @@ jobs: | |||||
| steps: | ||||||
| - name: Jira login | ||||||
| id: login | ||||||
| uses: atlassian/gajira-login@v3.0.1 | ||||||
| uses: atlassian/gajira-login@45fd029b9f1d6d8926c6f04175aa80c0e42c9026 # v3.0.1 | ||||||
| env: | ||||||
| JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | ||||||
| JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | ||||||
| JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | ||||||
|
|
||||||
| - name: Create Jira issue | ||||||
| id: create_jira_issue | ||||||
| uses: atlassian/gajira-create@v3 | ||||||
| uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3 | ||||||
| with: | ||||||
| project: DOCS | ||||||
| issuetype: Bug | ||||||
|
|
@@ -33,7 +33,7 @@ jobs: | |||||
| fields: '{"customfield_10009": "DOCS-162", "labels": ["Quality"]}' | ||||||
|
|
||||||
| - name: Update title of GitHub issue | ||||||
| uses: actions/github-script@v7 | ||||||
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 HIGH RISK The SHA f28e40c7f34bde8b3046d885e986cb6290c5673b corresponds to v4.0.2. Since this script relies on 'github.rest' (introduced in v5), using v4 will cause a ReferenceError at runtime. Please update to the latest v7 SHA.
Suggested change
|
||||||
| env: | ||||||
| JIRA_ISSUE_NUMBER: ${{ steps.create_jira_issue.outputs.issue }} | ||||||
| GITHUB_ORIGINAL_TITLE: ${{ github.event.issue.title }} | ||||||
|
|
@@ -49,7 +49,7 @@ jobs: | |||||
| }) | ||||||
|
|
||||||
| - name: Add comment to GitHub issue | ||||||
| uses: actions/github-script@v7 | ||||||
| uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 HIGH RISK The SHA f28e40c7f34bde8b3046d885e986cb6290c5673b corresponds to v4.0.2. Please update to the latest v7 SHA to ensure compatibility with 'github.rest.issues.createComment'.
Suggested change
|
||||||
| with: | ||||||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||||||
| script: | | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,10 +9,10 @@ jobs: | |||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - name: Checkout repo with history | ||||||
| uses: actions/checkout@v4 | ||||||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM RISK The SHA 34e114876b0b11c390a56381ad16ebd13914f8d5 corresponds to v2.4.2. Use the correct SHA for the current v4 release.
Suggested change
|
||||||
| with: | ||||||
| fetch-depth: 0 | ||||||
| - uses: Rebilly/lexi@v2 | ||||||
| - uses: Rebilly/lexi@5a517542b048ca8cb46e43f27736fed84dfb0e84 # v2 | ||||||
| with: | ||||||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||||||
| glob: 'docs/**/*.md' | ||||||
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.
🟡 MEDIUM RISK
The SHA 34e114876b0b11c390a56381ad16ebd13914f8d5 corresponds to v2.4.2. Since the workflow was using v4, please use the correct SHA for the latest v4 release.