-
Notifications
You must be signed in to change notification settings - Fork 0
Pinned SHA #682
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
Pinned SHA #682
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 |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ on: | |
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '26 23 * * 2' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| analyze: | ||
|
|
@@ -57,7 +58,7 @@ jobs: | |
| # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
|
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. SHA固定によるセキュリティ強化は素晴らしい改善です。ただし、actions/checkout@v5.0.0のSHA Footnotes
|
||
|
|
||
| # Add any setup steps before running the `github/codeql-action/init` action. | ||
| # This includes steps like installing compilers or runtimes (`actions/setup-node` | ||
|
|
@@ -67,7 +68,7 @@ jobs: | |
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
|
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. CodeQLアクションのSHA固定は優れたセキュリティプラクティスです。ただし、両方のCodeQLアクション(initとanalyze)で同じSHA |
||
| uses: github/codeql-action/init@v3 | ||
| uses: github/codeql-action/init@303c0aef88fc2fe5ff6d63d3b1596bfd83dfa1f9 # v3.30.4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
| build-mode: ${{ matrix.build-mode }} | ||
|
|
@@ -95,6 +96,6 @@ jobs: | |
| exit 1 | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v3 | ||
| uses: github/codeql-action/analyze@303c0aef88fc2fe5ff6d63d3b1596bfd83dfa1f9 # v3.30.4 | ||
| with: | ||
| category: "/language:${{matrix.language}}" | ||
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.
workflow_dispatchトリガーの追加は良い改善です。これにより手動でCodeQL分析を実行できるようになり、セキュリティ監査やトラブルシューティングに役立ちます。セキュリティワークフローの柔軟性が向上します。