-
Notifications
You must be signed in to change notification settings - Fork 0
feat(#1177): add SchemaSpy workflow for postgres deployment model #1219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ae5dbeb
0c153ae
8499b98
d5a3691
46bebdb
45296ce
e591256
f7bf93a
b755118
449c1fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||||||
| name: SchemaSpy | ||||||||||
|
|
||||||||||
| concurrency: | ||||||||||
| group: ${{ github.workflow }} | ||||||||||
| cancel-in-progress: false | ||||||||||
|
|
||||||||||
| on: | ||||||||||
| push: | ||||||||||
| branches: [main] | ||||||||||
| paths: | ||||||||||
| - "backend/src/main/resources/db/migration/**" | ||||||||||
| - "backend/src/main/resources/db/migration-dev/**" | ||||||||||
| workflow_dispatch: | ||||||||||
|
|
||||||||||
| permissions: {} | ||||||||||
|
|
||||||||||
| jobs: | ||||||||||
| schemaspy: | ||||||||||
| name: Generate SchemaSpy Documentation and Push to GitHub Pages | ||||||||||
| permissions: | ||||||||||
| contents: write | ||||||||||
| pages: write | ||||||||||
| uses: bcgov/quickstart-openshift-helpers/.github/workflows/.schema-spy.yml@ca6579bdadf383a2513397081f963889b92823a4 # v1.1.0 | ||||||||||
| with: | ||||||||||
| flyway_locations: >- | ||||||||||
| filesystem:./backend/src/main/resources/db/migration, | ||||||||||
| filesystem:./backend/src/main/resources/db/migration-dev | ||||||||||
|
Comment on lines
+25
to
+27
|
||||||||||
| flyway_locations: >- | |
| filesystem:./backend/src/main/resources/db/migration, | |
| filesystem:./backend/src/main/resources/db/migration-dev | |
| flyway_locations: filesystem:./backend/src/main/resources/db/migration,filesystem:./backend/src/main/resources/db/migration-dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The job is intended to publish to GitHub Pages, but it only grants
contents: writeandpages: write. If the reusable SchemaSpy workflow uses the official GitHub Pages deployment flow (actions/deploy-pages), it also requiresid-token: write(and the caller must grant it). Consider addingid-token: writehere, and (if branch pushes aren’t required) reducingcontentstoreadfor least privilege.