Commit graph

5 commits

Author SHA1 Message Date
Adam Moussa
e769260598
chore: batch Dependabot boto3 bumps (#176, #177, #178, #179, #180, #181, #182) (#183)
Some checks are pending
Deploy / deploy (push) Waiting to run
Deploy / release (push) Blocked by required conditions
* Update boto3 requirement in /src/holiday-router

Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.48...1.43.53)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.53
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update boto3 requirement in /src/release-notifier

Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.48...1.43.53)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.53
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update boto3 requirement in /src/ring-scheduler

Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.48...1.43.53)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.53
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update boto3 requirement from >=1.43.48 to >=1.43.53 in /src/roster-sync

Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.48...1.43.53)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.53
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update boto3 requirement from >=1.43.48 to >=1.43.53 in /src/shared

Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.48...1.43.53)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.53
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update boto3 requirement from >=1.43.48 to >=1.43.53 in /src/slack-bot

Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.48...1.43.53)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.53
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update boto3 requirement from >=1.43.48 to >=1.43.53 in /src/weekly-post

Updates the requirements on [boto3](https://github.com/boto/boto3) to permit the latest version.
- [Release notes](https://github.com/boto/boto3/releases)
- [Commits](https://github.com/boto/boto3/compare/1.43.48...1.43.53)

---
updated-dependencies:
- dependency-name: boto3
  dependency-version: 1.43.53
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: gitignore .idea/

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-22 13:08:01 -04:00
Adam Moussa
3a26343cb7
Add pytest suite and wire it into CI (#85) (#86)
* Add pytest suite and wire it into CI

Stands up the first automated tests for the repo (151 tests) and turns on
the CI test step.

- Lift slack-bot handlers out of create_app() closures to module level so
  they're unit-testable; create_app is now a thin Bolt-wiring layer. No
  behavior change (handler entrypoints and create_app signature unchanged).
- tests/ mirrors src/: shared layer (schedule, blocks, 3CX client,
  ring_scheduler, secrets) + all four Lambdas (pay math, drop/swap/pick/
  admin/register/rate, pickup button, roster sync, queue scheduler).
- All boundaries mocked: DynamoDB/SES/Secrets via moto, 3CX HTTP via
  responses, Slack via fakes, time via freezegun. No real network/AWS.
- pyproject.toml pytest config (pythonpath=src/shared, importlib mode);
  per-package conftest loads each app.py under a unique name to avoid the
  four-app.py collision. tests/requirements.txt for test-only deps.
- ci.yaml: run-tests: true (reusable workflow auto-installs deps) and lint
  the tests dir too.
- README Testing section.

Closes #85

* Add least-privilege permissions block to CI workflow

Resolves the CodeQL actions/missing-workflow-permissions alert: the CI
workflow now restricts GITHUB_TOKEN to contents: read (it only checks out,
lints, and runs tests).

* Stop logging extension numbers in 3CX queue updates

Resolves 3 high CodeQL py/clear-text-logging-sensitive-data alerts: the
queue/ring-group forwarding logs no longer include the routed extension
values (closed/holiday/extension). Non-sensitive context (resource id,
queue number) is retained.
2026-06-01 19:07:08 -04:00
Adam Moussa
6d6130c1a6
Add CodePipeline CI/CD, remove Git sync config (#36) (#36)
- Added reusable pipeline.yaml (CodePipeline + CodeBuild + CloudFormation deploy)
- Added buildspec.yml for SAM build/package
- Removed deployment-config.yaml and untracked samconfig.toml (Git sync artifacts)
- Restored samconfig.toml to .gitignore
2026-05-01 16:18:56 -04:00
Adam Moussa
0f37558487
Track samconfig.toml for CloudFormation Git sync deployments (#33) 2026-05-01 15:54:30 -04:00
Adam Moussa
4d0cdb5cfb Initial commit: after-hours shift manager Slack bot
Slack Bolt app on Lambda for managing on-call shifts. Employees can
pick up, drop, and swap shifts via /oncall commands. Changes update
3CX ring group 800 routing in real time for same-day shifts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 18:32:32 -04:00