-
Notifications
You must be signed in to change notification settings - Fork 3
test #381
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
Open
suzuki-shunsuke
wants to merge
6
commits into
main
Choose a base branch
from
test-pinact-action-v3-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
test #381
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,21 @@ | ||
| --- | ||
| name: test | ||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| pull_request_review: | ||
| types: [submitted] | ||
| on: pull_request | ||
| jobs: | ||
| test: | ||
| if: | | ||
| endsWith(github.event.pull_request.user.login, '[bot]') && | ||
| ((github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || | ||
| github.event_name == 'pull_request') | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 15 | ||
| permissions: | ||
| pull-requests: write | ||
| contents: read | ||
| steps: | ||
| - uses: suzuki-shunsuke/notify-bot-pr-event-action@pr/1 | ||
| - uses: suzuki-shunsuke/pr-unified-diff-action@v0.0.1 | ||
| id: diff | ||
| - run: cat "$DIFF_FILE" | ||
| env: | ||
| DIFF_FILE: ${{ steps.diff.outputs.diff_path }} | ||
| - uses: suzuki-shunsuke/pinact-action@pr/1065 | ||
| with: | ||
| no_api: true | ||
| fix: false | ||
| diff_file: ${{ steps.diff.outputs.diff_path }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
🏁 Script executed:
Repository: szksh-lab-2/test-github-action
Length of output: 56
🏁 Script executed:
Repository: szksh-lab-2/test-github-action
Length of output: 151
🏁 Script executed:
Repository: szksh-lab-2/test-github-action
Length of output: 1016
🌐 Web query:
Find the commit SHA for suzuki-shunsuke/pr-unified-diff-action tag v0.0.1💡 Result:
I can’t determine the commit SHA for tag v0.0.1 in suzuki-shunsuke/pr-unified-diff-action from the sources retrieved so far. The GitHub repo page shows that a release/tag v0.0.1 exists, but the commit SHA that v0.0.1 points to is not included in the surfaced content snippets [1]. To get the exact SHA, you’d typically open the tag/release entry for v0.0.1 and read the commit it references (e.g., the “tag” or “commit” page for v0.0.1).
Citations:
🌐 Web query:
Find the commit SHA for suzuki-shunsuke/pinact-action corresponding to pull request#1065(refs: pr/1065)💡 Result:
I couldn’t retrieve the commit SHA for suzuki-shunsuke/pinact-action pull request
#1065(refs: pr/1065) from the sources available in the searches I ran. The search results returned commits/PRs for other numbers (e.g.,#1491for pinact-action version bump, and unrelated pinact PRs) but no page or API snippet for pinact-action PR#1065that includes its merge/HEAD commit SHA. If you want, I can try one more targeted lookup specifically for the PR page (pinact-action/pull/1065) or the PR refs endpoint (refs/pull/1065) to extract the exact SHA.Citations:
Pin GitHub Actions
usesrefs to commit SHAs in.github/workflows/test.yaml..github/workflows/test.yamluses non-SHA refs:suzuki-shunsuke/pr-unified-diff-action@v0.0.1(line 12) andsuzuki-shunsuke/pinact-action@pr/1065(line 17). Replace both with immutable 40-char commit SHAs.🔧 Proposed change
🧰 Tools
🪛 GitHub Actions: test / 0_test.txt
[error] 12-12: pinact run failed: failed to handle a line. ERROR: action can't be pinned. Unpinned GitHub Action reference: 'suzuki-shunsuke/pr-unified-diff-action@v0.0.1'.
🪛 GitHub Actions: test / test
[error] 12-12: pinact failed: action can't be pinned. Pinact reported: "failed to handle a line: action can't be pinned" for step using
suzuki-shunsuke/pr-unified-diff-action@v0.0.1.🪛 GitHub Check: test
[failure] 12-12: pinact error
action can't be pinned
🪛 zizmor (1.25.2)
[error] 12-12: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)
(unpinned-uses)
🤖 Prompt for AI Agents