Skip to content

Commit ad90351

Browse files
Copilotsokripon
andauthored
Add GitHub Actions step to validate Postmark credentials (#3)
* Initial plan * Add separate step to check Postmark credentials in CI Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com> * Fix security issue: Use environment variables for credential check Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sokripon <79755465+sokripon@users.noreply.github.com>
1 parent 30a0245 commit ad90351

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,21 @@ jobs:
2525
- name: Run linter
2626
run: uv run ruff check .
2727

28+
- name: Check Postmark credentials
29+
env:
30+
POSTMARK_API_TOKEN: ${{ secrets.POSTMARK_API_TOKEN }}
31+
SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }}
32+
run: |
33+
if [ -z "$POSTMARK_API_TOKEN" ]; then
34+
echo "Error: POSTMARK_API_TOKEN is not set in repository secrets"
35+
exit 1
36+
fi
37+
if [ -z "$SENDER_EMAIL" ]; then
38+
echo "Error: SENDER_EMAIL is not set in repository secrets"
39+
exit 1
40+
fi
41+
echo "Postmark credentials are properly configured"
42+
2843
- name: Run tests
2944
env:
3045
POSTMARK_API_TOKEN: ${{ secrets.POSTMARK_API_TOKEN }}

0 commit comments

Comments
 (0)