github / github/vscode-github-actions

False warning for Github Action checkout step: "Context access might be invalid"

Đang mở
#452 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
660
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
False warning for Github checkout step: "Context access might be invalid"

**To Reproduce**
Steps to reproduce the behavior:
1. With this workflow '...'
- name: checkout
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
I get this warning under problems in VS Code:
"Context access might be invalid: pull_request"

**Expected behavior**
No problem warning in VS Code because I am checking if github event is pull_request or pull_request_target

**Extension Version**
`v0.27.1`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.