Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/poc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "tj-action changed-files incident"
on:
pull_request:
branches:
- main
jobs:
changed_files:
runs-on: ubuntu-latest
steps:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@0e58ed8671d6b60d0890c21b07f8835ace038e67

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 security Compromised Action Exposes Credentials

This SHA points to the malicious revision from the tj-actions/changed-files supply-chain incident. Every pull request to main executes its runner-memory scraping payload, which can print encoded credentials such as GITHUB_TOKEN into the workflow log.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/poc.yml
Line: 12

Comment:
**Compromised Action Exposes Credentials**

This SHA points to the malicious revision from the `tj-actions/changed-files` supply-chain incident. Every pull request to `main` executes its runner-memory scraping payload, which can print encoded credentials such as `GITHUB_TOKEN` into the workflow log.

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +10 to +12

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Changed-Files Runs Without Repository

A new runner reaches this step without an actions/checkout step, so the action's default Git-based comparison has no repository or history to inspect. Pull requests to main can therefore fail with a Git repository error instead of calculating changed files.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/poc.yml
Line: 10-12

Comment:
**Changed-Files Runs Without Repository**

A new runner reaches this step without an `actions/checkout` step, so the action's default Git-based comparison has no repository or history to inspect. Pull requests to `main` can therefore fail with a Git repository error instead of calculating changed files.

How can I resolve this? If you propose a fix, please make it concise.