Skip to content

Commit

Permalink
feat: integrate Sentry in CI and Astro config for enhanced error trac…
Browse files Browse the repository at this point in the history
…king

Ensures Sentry is consistently configured across CI and project settings, improving error monitoring and issue resolution.
  • Loading branch information
ccbikai committed Oct 15, 2024
1 parent 902ef27 commit b8f0d6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
Expand Down
2 changes: 1 addition & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default defineConfig({
output: 'hybrid',
adapter: providers[adapterProvider] || providers.node,
integrations: [
...(process.env.SENTRY_DSN
...(process.env.SENTRY_DSN || process.env.SENTRY_AUTH_TOKEN
? [
sentry({
enabled: {
Expand Down

0 comments on commit b8f0d6f

Please sign in to comment.