Skip to content

Commit df99407

Browse files
authored
ci: make security guardian work with merg backs from main (#36304)
### Issue # (if applicable) Closes #<issue number here>. ### Reason for this change Fixes security guardian failures like in : - https://github.com/aws/aws-cdk/actions/runs/19962933480/job/57247510443 - https://github.com/aws/aws-cdk/actions/runs/19961622290/job/57243193536 - https://github.com/aws/aws-cdk/actions/runs/19961507514/job/57242822537 ### Description of changes ### Describe any new or updated permissions being added ### Description of how you validated changes ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 06e6b25 commit df99407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/@aws-cdk/security-guardian/src/get-changed-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export async function detectChangedTemplates(baseSha: string, headSha: string, w
77
core.info(`Detecting changed .template.json files from ${baseSha} to ${headSha}`);
88

99
let stdout = '';
10-
await exec.exec('git', ['diff', '--name-status', `${baseSha}`, `${headSha}`], {
10+
await exec.exec('git', ['diff', '--name-status', `${baseSha}..${headSha}`], {
1111
listeners: {
1212
stdout: (data: Buffer) => {
1313
stdout += data.toString();

0 commit comments

Comments
 (0)