Skip to content

Conversation

@jmeridth
Copy link
Member

@jmeridth jmeridth commented Sep 18, 2025

Fixes #598

Pull Request

Proposed Changes

We have to do this because we have no active way to change permissions to $GITHUB_OUTPUT to a specific user when running the container

Add trivy ignore to top of Dockerfile to pass linting

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run make lint and fix any issues that you have introduced
  • run make test and ensure you have test coverage for the lines you are introducing
  • If publishing new data to the public (scorecards, security scan results, code quality results, live dashboards, etc.), please request review from @jeffrey-luszcz

Reviewer

  • Label as either fix, documentation, enhancement, infrastructure, maintenance, or breaking

We have to do this because we have no active way to change
permissions to $GITHUB_OUTPUT to a specific user when
running the container

Add trivy ignore to top of Dockerfile to pass linting

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth self-assigned this Sep 18, 2025
@jmeridth jmeridth requested a review from a team as a code owner September 18, 2025 03:08
Copilot AI review requested due to automatic review settings September 18, 2025 03:08
@github-actions github-actions bot added the fix label Sep 18, 2025
Copy link
Contributor

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 reverts the Dockerfile back to using the root user instead of a non-root user due to permission issues with writing to $GITHUB_OUTPUT when running in a container environment. The change removes the user creation and switching logic while adding a trivy security scanner ignore directive.

  • Removes non-root user creation and switching to resolve GitHub Actions output permission issues
  • Adds trivy ignore directive to suppress security warnings about running as root
  • Simplifies the Dockerfile by removing user management complexity

@jmeridth jmeridth merged commit c2ad23c into main Sep 18, 2025
36 checks passed
@jmeridth jmeridth deleted the jm_fix_github_output_permissions branch September 18, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

v3 regression: PermissionError writing to $GITHUB_OUTPUT as non-root user

2 participants