Feature request: `fileAssetJobSettings` for file-asset publishing jobs
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 76/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- github-actions, typescript
- Domain
- ci-cd
Research direction
Start in src/pipeline.ts at jobForAssetPublish(), especially the hardcoded cdk-assets install step, and compare it with the existing dockerAssetJobSettings handling. Trace GitHubWorkflowProps and the asset publishing job generation to identify the relevant public interfaces. Done means file-asset jobs accept setup steps and additional permissions, with generated workflows reflecting those settings.
Written by the indexing model from the issue text.
Description
GitHubWorkflowProps exposes dockerAssetJobSettings to inject setupSteps and extra permissions into Docker-asset publishing jobs, but there is no equivalent for file-asset publishing jobs (Assets-FileAsset*).
The npm install --no-save cdk-assets step in jobForAssetPublish() is hardcoded, so there is no way to configure the npm registry, inject credentials, or add any pre-install step through the public API.
Proposed API
export interface FileAssetJobSettings {
/** Steps to execute before installing cdk-assets and publishing. @default [] */
readonly setupSteps?: github.JobStep[];
/** Additional permissions for file-asset publishing jobs. @default - none */
readonly permissions?: github.JobPermissions;
}
export interface GitHubWorkflowProps extends PipelineBaseProps {
/** Job level settings applied to all file asset publishing jobs. @default - none */
readonly fileAssetJobSettings?: FileAssetJobSettings;
}
setupSteps would be injected immediately before the Install step in jobForAssetPublish(), consistent with how dockerAssetJobSettings.setupSteps is handled for Docker asset jobs.
Use case
Any organisation that needs to configure npm before install - private registry, npm proxy, authentication - currently has no way to do so for file-asset jobs.
Would you be willing to submit a PR?
Yes.
- Dominant language
- TypeScript
- Stars
- 384
- Forks
- 47
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cdklabs/cdk-pipelines-github
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
cdklabs/cdk-pipelines-github#1460 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
cdklabs/cdk-pipelines-github#1456 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
cdklabs/cdk-pipelines-github#1443 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cdklabs/cdk-pipelines-github#1421 · 1 comment · 2 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
cdklabs/cdk-pipelines-github#1414 · 2 comments · 5 reactions ·
All issues in cdklabs/cdk-pipelines-github
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
ranxianglei/billion-context#7860 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opencollective/opencollective#9177 ·