Urgent.News

What's breaking now, across thousands of outlets.

Tech

GitHub Actions Workflow Lockfile: Pin Transitive Deps

GitHub just made workflow lockfiles generally available, and the gh actions-lock command finally answers a question that SHA pinning never could: what about the actions your actions call? A GitHub Actions workflow lockfile records exact commits for actions and their transitive dependencies, while your YAML keeps its readable @v4 style references. That's the release. The harder part is rolling it…

GitHub has recently made workflow lockfiles available for use, which addresses the limitation of SHA pinning by recording exact commits for actions and their transitive dependencies. The lockfile complements the YAML by providing a more comprehensive record of the workflow. While the process of rolling out the lockfile may require careful consideration to avoid disrupting CI pipelines, it represents a significant improvement over previous methods of pinning only the top-level actions.

To implement the lockfile, it is recommended to start with low-risk workflows, such as a documentation build, and gradually expand to other workflows that hold sensitive deploy credentials. A Python script has been provided to audit the current uses: lines in the workflow files and classify them based on their pinning status. This audit can serve as a baseline before proceeding with the lockfile implementation.

Additionally, a guard job has been suggested to ensure that the uses: lines do not change without a corresponding update to the lockfile. This added safety measure helps prevent unintentional drift between the YAML and the lockfile.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Keisei Skyliner Reservation System Hacked, Up to 3.37 Million Records at Risk

Keisei Electric Railway has suspended online seat reservations for its Skyliner express service connecting central Tokyo with Narita Airport after a cyberattack potentially exposed up to 3.37 million…

  • Keisei Electric Railway suspends Skyliner online reservations.
  • Attack may have exposed up to 3.37 million personal records.
  • Passengers must buy tickets via alternative means.

Browser Image Upload to Object Storage: 4 Retention Checks for Logistics Exports

Browser Image Upload to Object Storage: 4 Retention Checks for Logistics Exports Short answer: use a private bucket, let the server create a tenant-bound object key, and give the browser a presigned…

  • Utilize private bucket with tenant-bound object key and presigned upload URL.
  • Implement Cloudflare R2 lifecycle semantics with caution.
  • Shared REST paths preferred for simplicity and credential management.

Props Drilling in React

When building React applications, we use props to pass data from one component to another. But what happens when we need to pass data through multiple components, even when some of those components…

  • Props Drilling occurs when data is passed through multiple intermediate components in React.
  • User component in the example needed username from App via Profile, illustrating Props Drilling.
  • Context API provides a solution by allowing data sharing without Props Drilling.

More from Sunday 15 November →