Skip to content

KEH-2025 Copilot Lambda New Endpoints Refactor#74

Open
hadiqur wants to merge 13 commits intomainfrom
new-endpoint-refactor
Open

KEH-2025 Copilot Lambda New Endpoints Refactor#74
hadiqur wants to merge 13 commits intomainfrom
new-endpoint-refactor

Conversation

@hadiqur
Copy link
Contributor

@hadiqur hadiqur commented Mar 19, 2026

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

What

As of April 2026, the endpoints that are used to fetch and aggregate team-specific copilot metrics are being sunsetted, rendering get_copilot_team_date(), get_and_update_copilot_teams and get_team_history obsolete.

The endpoint used to fetch organisation-wide metrics have been changed, so get_and_update_historic_usage() and the lambda handler has been changed to reflect this.

Testing

Have any new tests been added as part of this issue? If not, try to explain why test coverage is not needed here.

  • Yes
  • No
    Please write a brief description of why test coverage is not necessary here.
  • Not as part of this ticket. (Could be done at a later point)

Documentation

Has any new documentation been written as part of this issue? We should try to keep documentation up to date
as new code is added, rather than leaving it for the future.

  • Yes
  • No
    Please write a brief description of why documentation is not necessary here.
  • Not as part of this ticket. (Could be done at a later point)

Related issues

N/A

How to review

Clone the repository, set up the development environment and run the lambda on your local machine. The lambda will use and write to a new file in S3 named org_history.json.

I've also deployed it to dev, with the schedule unchanged.

@hadiqur hadiqur changed the title New endpoint refactor KEH-2025 [Copilot Dash] Copilot Lambda New Endpoints Refactor Mar 19, 2026
@hadiqur hadiqur changed the title KEH-2025 [Copilot Dash] Copilot Lambda New Endpoints Refactor KEH-2025 Copilot Lambda New Endpoints Refactor Mar 19, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Warnings Elapsed time
⚠️ BASH bash-exec 6 4 0 0.04s
✅ BASH shellcheck 6 0 0 0.14s
✅ BASH shfmt 6 0 0 0.01s
✅ CSHARP csharpier 1 0 0 0.54s
✅ DOCKERFILE hadolint 1 0 0 0.09s
✅ JSON jsonlint 2 0 0 0.22s
✅ JSON prettier 2 0 0 0.58s
✅ JSON v8r 2 0 0 3.0s
✅ MARKDOWN markdownlint 7 0 0 1.09s
✅ REPOSITORY checkov yes no no 31.11s
✅ REPOSITORY dustilock yes no no 0.02s
✅ REPOSITORY gitleaks yes no no 7.52s
✅ REPOSITORY grype yes no no 60.39s
✅ REPOSITORY kics yes no no 50.33s
✅ REPOSITORY secretlint yes no no 1.2s
✅ REPOSITORY syft yes no no 4.26s
✅ REPOSITORY trivy yes no no 17.79s
✅ REPOSITORY trivy-sbom yes no no 0.41s
✅ TERRAFORM terraform-fmt 7 0 0 0.5s
✅ YAML prettier 8 0 0 0.94s
✅ YAML v8r 8 0 0 7.4s
✅ YAML yamllint 8 0 0 0.7s

See detailed report in MegaLinter reports

You could have same capabilities but better runtime performances if you request a new MegaLinter flavor.

MegaLinter is graciously provided by OX Security

@hadiqur hadiqur marked this pull request as ready for review March 19, 2026 17:13
@hadiqur hadiqur requested a review from a team March 19, 2026 17:57
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