Skip to content

Re-work image generation#100

Merged
knoepfel merged 3 commits intomainfrom
maintenance/rework-Dockerfile
Nov 10, 2025
Merged

Re-work image generation#100
knoepfel merged 3 commits intomainfrom
maintenance/rework-Dockerfile

Conversation

@greenc-FNAL
Copy link
Copy Markdown
Contributor

@greenc-FNAL greenc-FNAL commented Nov 7, 2025

Use a multi-target Dockerfile instead of ci/Dockerfile being the basis of a FROM ... for a dev image.

This avoids ownership/uid/permission/Spack cache issues in both CI and dev containers, while maximizing both Dockerfile maintainability/reuse, and image layer reuse.

@greenc-FNAL greenc-FNAL requested a review from knoepfel November 7, 2025 23:50
@greenc-FNAL greenc-FNAL force-pushed the maintenance/rework-Dockerfile branch from 68cbe7b to 8ad866e Compare November 8, 2025 17:38
@greenc-FNAL greenc-FNAL force-pushed the maintenance/rework-Dockerfile branch 2 times, most recently from a17a27e to c226e7a Compare November 10, 2025 15:31
Copy link
Copy Markdown
Member

@knoepfel knoepfel left a comment

Choose a reason for hiding this comment

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

Looks good, @greenc-FNAL. Have just one comment below.

Comment thread ci/Dockerfile
@knoepfel knoepfel merged commit 9869e6b into main Nov 10, 2025
17 checks passed
@greenc-FNAL greenc-FNAL deleted the maintenance/rework-Dockerfile branch November 13, 2025 15:10
greenc-FNAL added a commit that referenced this pull request Feb 13, 2026
Resolve 6 medium-severity code injection alerts (CodeQL #107, #105, #104, #103, #102, #100)
in .github/actions/handle-fix-commit/action.yaml by moving user inputs to environment
variables before use in shell commands.

This follows GitHub Security Lab best practices for preventing code injection in
GitHub Actions workflows:
https://securitylab.github.com/research/github-actions-untrusted-input/

Changes:
- Added env: section mapping all user inputs to environment variables
- Updated shell script to use $VAR syntax instead of ${{ inputs.X }} syntax
- Properly quoted all variable references to prevent word splitting

Inputs affected:
- inputs.token → $TOKEN
- inputs.tool → $TOOL
- inputs.retry-attempts → $RETRY_ATTEMPTS
- inputs.pr-info-ref → $PR_REF
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.

2 participants