Skip to content

Immutable actions support #8

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
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Immutable actions support #8

wants to merge 4 commits into from

Conversation

aegilops
Copy link
Collaborator

@aegilops aegilops commented Jul 14, 2025

Support Immutable Actions, which have different Actions workflow log output.

This pull request enhances the auditing capabilities for GitHub Actions workflows by introducing support for immutable actions, including appropriate tests.

It also includes test configuration files.

Enhancements to GitHub Actions Auditing:

  • audit_workflow_runs.js: Added support for immutable actions by including new fields immutable_version and digest in the createActionsRunResults function and updating the CSV header in the main function. [1] [2]
  • audit_workflow_runs_utils.js: Refactored the searchForActionsLines function to parse both mutable and immutable actions using new regex patterns and logic for handling grouped log lines.

Test Coverage Improvements:

Configuration Updates:

  • test.json: Added sample configuration for auditing specific actions, including tj-actions/changed-files and reviewdog/*.
  • test2.json: Added sample configuration for actions such as aquasecurity/trivy-action, actions/setup-node, and actions/checkout.

@Copilot Copilot AI review requested due to automatic review settings July 14, 2025 14:59
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for immutable GitHub Actions workflows by enhancing the auditing system to parse and track immutable action metadata alongside existing mutable action support.

  • Extends action parsing logic to handle immutable action groups with version, SHA, and digest information
  • Updates data structures and CSV output format to include new immutable action fields
  • Adds comprehensive test coverage for the new immutable action parsing functionality

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
audit_workflow_runs.js Updates createActionsRunResults function and CSV header to include immutable action fields
audit_workflow_runs_utils.js Refactors searchForActionsLines to parse both mutable and immutable actions with new regex patterns
audit_workflow_runs.test.js Adds test case validating extraction of immutable actions and their metadata
test.json Adds sample configuration for tj-actions/changed-files and reviewdog actions
test2.json Adds sample configuration for aquasecurity/trivy-action, actions/setup-node, and actions/checkout

@aegilops aegilops requested a review from a team July 14, 2025 15:00
aegilops and others added 2 commits July 14, 2025 16:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant