-
Notifications
You must be signed in to change notification settings - Fork 0
Update #227
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
Update #227
Changes from 4 commits
be4fa85
0b74aaa
ec78d98
bd72dc9
9867158
42ac659
d8986e3
6d48ecb
8d3e14a
f0186ca
3c858fe
e95aaf4
22f2609
ebcb86e
ad0e5ce
64ce8b9
a678918
793aa56
1193765
7c8f11a
dd42418
b38a76b
ea61c98
62f2c32
f7b6121
792813e
6ce1169
5705d02
9f54061
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 @@ | ||
| * @csikb |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| name: Build | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| merge_group: | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| jobs: | ||
| coverage: | ||
| name: Build | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: 'pnpm' | ||
| - run: pnpm install | ||
| - run: pnpm run test:coverage | ||
|
|
||
| integration: | ||
| name: Integration test | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: 'pnpm' | ||
| - run: pnpm install | ||
| - run: pnpm run test:coverage | ||
| env: | ||
| DEBUG: testcontainers:compose | ||
|
|
||
| test: | ||
| name: Unit test | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: 'pnpm' | ||
| - run: pnpm install | ||
| - run: pnpm run test:ci | ||
|
|
||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-22.04 | ||
| steps: | ||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: 'pnpm' | ||
| - run: pnpm install | ||
| - run: pnpm run lint | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,85 @@ | ||||||||||||||||||
| name: Docker | ||||||||||||||||||
|
|
||||||||||||||||||
| on: | ||||||||||||||||||
| pull_request: | ||||||||||||||||||
| workflow_dispatch: | ||||||||||||||||||
| merge_group: | ||||||||||||||||||
| schedule: | ||||||||||||||||||
| - cron: "0 0 * * *" | ||||||||||||||||||
| push: | ||||||||||||||||||
| branches: [ "main" ] | ||||||||||||||||||
| release: | ||||||||||||||||||
| types: [ published ] | ||||||||||||||||||
|
|
||||||||||||||||||
| permissions: read-all | ||||||||||||||||||
|
|
||||||||||||||||||
| jobs: | ||||||||||||||||||
| lint: | ||||||||||||||||||
| name: Lint Dockerfile | ||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||
| steps: | ||||||||||||||||||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||||||||||||||||||
| - uses: hadolint/hadolint-action@3fc49fb50d59c6ab7917a2e4195dba633e515b29 # v3.2.0 | ||||||||||||||||||
|
|
||||||||||||||||||
| build: | ||||||||||||||||||
| name: Build and publish | ||||||||||||||||||
| runs-on: ubuntu-24.04-arm | ||||||||||||||||||
| permissions: | ||||||||||||||||||
|
Comment on lines
+24
to
+27
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use an available runner label
- runs-on: ubuntu-24.04-arm
+ runs-on: ubuntu-22.04-arm64📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| contents: read | ||||||||||||||||||
| packages: write | ||||||||||||||||||
|
|
||||||||||||||||||
| attestations: write | ||||||||||||||||||
| id-token: write | ||||||||||||||||||
| security-events: write | ||||||||||||||||||
| steps: | ||||||||||||||||||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||||||||||||||||||
| - uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0 | ||||||||||||||||||
| with: | ||||||||||||||||||
| registry: ghcr.io | ||||||||||||||||||
| username: ${{ github.actor }} | ||||||||||||||||||
| password: ${{ github.token }} | ||||||||||||||||||
| - uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 | ||||||||||||||||||
| - uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 | ||||||||||||||||||
| - uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0 | ||||||||||||||||||
| id: meta | ||||||||||||||||||
| env: | ||||||||||||||||||
| DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index | ||||||||||||||||||
| with: | ||||||||||||||||||
| images: ghcr.io/${{ github.repository }} | ||||||||||||||||||
| tags: | | ||||||||||||||||||
| type=schedule | ||||||||||||||||||
| type=semver,pattern={{raw}} | ||||||||||||||||||
| type=semver,pattern=v{{major}}.{{minor}} | ||||||||||||||||||
| type=semver,pattern=v{{major}} | ||||||||||||||||||
| type=ref,event=branch | ||||||||||||||||||
| type=ref,event=pr | ||||||||||||||||||
| # on.schedule: nightly | ||||||||||||||||||
| # on.push:tag: latest (auto), v1.2.3, v.1,2, v.1 | ||||||||||||||||||
| # on.push.branch: branchName | ||||||||||||||||||
| # on.pull_request: pr-number (won't be pushed) | ||||||||||||||||||
|
|
||||||||||||||||||
| - uses: docker/bake-action@3acf805d94d93a86cce4ca44798a76464a75b88c # v6.9.0 | ||||||||||||||||||
| with: | ||||||||||||||||||
| push: ${{ github.event_name != 'pull_request' && github.event_name != 'merge_group' }} | ||||||||||||||||||
| files: | | ||||||||||||||||||
| cwd://${{ steps.meta.outputs.bake-file }} | ||||||||||||||||||
| cwd://${{ steps.meta.outputs.bake-file-annotations }} | ||||||||||||||||||
| ./docker-bake.hcl | ||||||||||||||||||
| sbom: true | ||||||||||||||||||
| provenance: true | ||||||||||||||||||
| set: | | ||||||||||||||||||
| *.cache-from=type=gha | ||||||||||||||||||
| *.cache-to=type=gha,mode=max | ||||||||||||||||||
|
|
||||||||||||||||||
| - uses: anchore/scan-action@f6601287cdb1efc985d6b765bbf99cb4c0ac29d8 # v7.0.0 | ||||||||||||||||||
| id: scan | ||||||||||||||||||
| if: ${{ github.event_name != 'pull_request' && github.event_name != 'merge_group' }} | ||||||||||||||||||
| with: | ||||||||||||||||||
| image: "ghcr.io/bsstudio/bss-web-graphql:${{ env.DOCKER_METADATA_OUTPUT_VERSION }}" | ||||||||||||||||||
| cache-db: true | ||||||||||||||||||
| severity-cutoff: 'high' | ||||||||||||||||||
| fail-build: false | ||||||||||||||||||
|
|
||||||||||||||||||
| - uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 | ||||||||||||||||||
| if: ${{ github.event_name != 'pull_request' && github.event_name != 'merge_group' }} | ||||||||||||||||||
| with: | ||||||||||||||||||
| sarif_file: ${{ steps.scan.outputs.sarif }} | ||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,42 @@ | ||||||||||||||||||||
| name: Release | ||||||||||||||||||||
|
|
||||||||||||||||||||
| on: | ||||||||||||||||||||
| pull_request: | ||||||||||||||||||||
| merge_group: | ||||||||||||||||||||
| push: | ||||||||||||||||||||
| branches: [ main ] | ||||||||||||||||||||
|
Comment on lines
+3
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Restrict the release workflow to push-only triggers. This job depends on -on:
- pull_request:
- merge_group:
- push:
- branches: [ main ]
+on:
+ push:
+ branches: [ main ]
+ workflow_dispatch:📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
|
|
||||||||||||||||||||
| permissions: read-all | ||||||||||||||||||||
|
|
||||||||||||||||||||
| jobs: | ||||||||||||||||||||
| release: | ||||||||||||||||||||
| name: Release | ||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||
| steps: | ||||||||||||||||||||
| - uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | ||||||||||||||||||||
| id: release-token | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| app-id: ${{ vars.RELEASE_APP_ID }} | ||||||||||||||||||||
| private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }} | ||||||||||||||||||||
| permission-contents: write # to be able to publish a GitHub release | ||||||||||||||||||||
| permission-issues: write # to be able to comment on released issues | ||||||||||||||||||||
| permission-pull-requests: write # to be able to comment on released pull requests | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| token: ${{ steps.release-token.outputs.token }} | ||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||
| # persist-credentials: 'false' | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | ||||||||||||||||||||
| with: | ||||||||||||||||||||
| node-version-file: package.json | ||||||||||||||||||||
| cache: 'pnpm' | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - run: pnpm install | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - run: pnpm run release | ||||||||||||||||||||
| env: | ||||||||||||||||||||
| GH_TOKEN: ${{ steps.release-token.outputs.token }} | ||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| # This workflow uses actions that are not certified by GitHub. They are provided | ||
| # by a third-party and are governed by separate terms of service, privacy | ||
| # policy, and support documentation. | ||
|
|
||
| name: Scorecard supply-chain security | ||
| on: | ||
| # For Branch-Protection check. Only the default branch is supported. See | ||
| # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection | ||
| branch_protection_rule: | ||
| # To guarantee Maintained check is occasionally updated. See | ||
| # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained | ||
| schedule: | ||
| - cron: '41 19 * * 0' | ||
| pull_request: | ||
| merge_group: | ||
| push: | ||
| branches: [ "main" ] | ||
|
|
||
| # Declare default permissions as read only. | ||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| analysis: | ||
| name: Scorecard analysis | ||
| runs-on: ubuntu-latest | ||
| # `publish_results: true` only works when run from the default branch. conditional can be removed if disabled. | ||
| if: github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request' | ||
| permissions: | ||
| # Needed to upload the results to code-scanning dashboard. | ||
| security-events: write | ||
| # Needed to publish results and get a badge (see publish_results below). | ||
| id-token: write | ||
| # Uncomment the permissions below if installing in a private repository. | ||
| # contents: read | ||
| # actions: read | ||
|
|
||
| steps: | ||
| - name: "Checkout code" | ||
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: "Run analysis" | ||
| uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2 | ||
| with: | ||
| results_file: results.sarif | ||
| results_format: sarif | ||
| # (Optional) "write" PAT token. Uncomment the `repo_token` line below if: | ||
| # - you want to enable the Branch-Protection check on a *public* repository, or | ||
| # - you are installing Scorecard on a *private* repository | ||
| # To create the PAT, follow the steps in https://github.com/ossf/scorecard-action?tab=readme-ov-file#authentication-with-fine-grained-pat-optional. | ||
| # repo_token: ${{ secrets.SCORECARD_TOKEN }} | ||
|
|
||
| # Public repositories: | ||
| # - Publish results to OpenSSF REST API for easy access by consumers | ||
| # - Allows the repository to include the Scorecard badge. | ||
| # - See https://github.com/ossf/scorecard-action#publishing-results. | ||
| # For private repositories: | ||
| # - `publish_results` will always be set to `false`, regardless | ||
| # of the value entered here. | ||
| publish_results: true | ||
|
|
||
| # (Optional) Uncomment file_mode if you have a .gitattributes with files marked export-ignore | ||
| # file_mode: git | ||
|
|
||
| # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF | ||
| # format to the repository Actions tab. | ||
| - name: "Upload artifact" | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | ||
| with: | ||
| name: SARIF file | ||
| path: results.sarif | ||
| retention-days: 5 | ||
|
|
||
| # Upload the results to GitHub's code scanning dashboard (optional). | ||
| # Commenting out will disable upload of results to your repo's Code Scanning dashboard | ||
| - name: "Upload to code-scanning" | ||
| uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3 | ||
| with: | ||
| sarif_file: results.sarif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| lts/jod |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "$schema": "https://www.schemastore.org/semantic-release.json", | ||
| "plugins": [ | ||
| "@semantic-release/commit-analyzer", | ||
| "@semantic-release/release-notes-generator", | ||
| "@semantic-release/github" | ||
| ] | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.