-
Notifications
You must be signed in to change notification settings - Fork 1
テスト結果ID 440 から 580 の追加 #157
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?
Conversation
判定のマルバツを選択する処理があやしい |
現状 |
if: github.event.pull_request.merged == true || github.event_name == 'push' || github.event_name == 'pull_request' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: プルリクエストの場合、PRブランチをチェックアウト | ||
if: github.event_name == 'pull_request' | ||
run: git checkout ${{ github.event.pull_request.head.sha }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pyyaml | ||
|
||
- name: Run checkdata.py | ||
run: python3 .github/workflows/checkdata.py |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI about 1 month ago
To fix the problem, add a permissions
block to the workflow file. The minimal required permission for this workflow is contents: read
, which allows the workflow to check out code but does not grant unnecessary write access. The permissions
block should be added at the top level of the workflow (just after the name:
and before on:
), so it applies to all jobs unless overridden. No other changes are needed, as the workflow does not appear to require any additional permissions.
-
Copy modified lines R1-R2
@@ -1,3 +1,5 @@ | ||
permissions: | ||
contents: read | ||
name: checkdata | ||
|
||
on: |
レビュー用に以下の変更を行っている