-
Notifications
You must be signed in to change notification settings - Fork 0
Add CI workflow without release #2
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
Changes from all commits
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,24 @@ | ||||||||||||||||||||||||||||||||||
| name: CI | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||||||
| - main | ||||||||||||||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||||||||||||||
| branches: | ||||||||||||||||||||||||||||||||||
| - "**" | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| permissions: | ||||||||||||||||||||||||||||||||||
| contents: write | ||||||||||||||||||||||||||||||||||
| pull-requests: write | ||||||||||||||||||||||||||||||||||
| id-token: write | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||||||||||||
| lint: | ||||||||||||||||||||||||||||||||||
| uses: listee-dev/listee-ci/.github/workflows/lint.yml@main | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| typecheck: | ||||||||||||||||||||||||||||||||||
| uses: listee-dev/listee-ci/.github/workflows/typecheck.yml@main | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| test: | ||||||||||||||||||||||||||||||||||
| uses: listee-dev/listee-ci/.github/workflows/test.yml@main | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+17
to
+24
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. 🧩 Analysis chainPin reusable workflows to specific tags or commit SHAs instead of @main. Using Identify the appropriate version or commit SHA for each reusable workflow and apply a diff similar to this: lint:
- uses: listee-dev/listee-ci/.github/workflows/lint.yml@main
+ uses: listee-dev/listee-ci/.github/workflows/lint.yml@v1.0.0
typecheck:
- uses: listee-dev/listee-ci/.github/workflows/typecheck.yml@main
+ uses: listee-dev/listee-ci/.github/workflows/typecheck.yml@v1.0.0
test:
- uses: listee-dev/listee-ci/.github/workflows/test.yml@main
+ uses: listee-dev/listee-ci/.github/workflows/test.yml@v1.0.0Once you identify the appropriate versions, please verify the reusable workflows documentation to confirm the exact version or commit SHA to use. I'll verify the appropriate versions available for the Length of output: 951 🌐 Web query: 💡 Result: Releases for listee-dev/listee-ci (versions and publish dates):
Sources: GitHub repository and Releases page. [1] GitHub — listee-dev/listee-ci Releases. [2] GitHub — listee-dev/listee-ci repository main page. Pin reusable workflows to specific, immutable references instead of @main. Using Update the three workflows to use either the latest stable version or full commit SHAs: lint:
- uses: listee-dev/listee-ci/.github/workflows/lint.yml@main
+ uses: listee-dev/listee-ci/.github/workflows/lint.yml@v1.2.0
typecheck:
- uses: listee-dev/listee-ci/.github/workflows/typecheck.yml@main
+ uses: listee-dev/listee-ci/.github/workflows/typecheck.yml@v1.2.0
test:
- uses: listee-dev/listee-ci/.github/workflows/test.yml@main
+ uses: listee-dev/listee-ci/.github/workflows/test.yml@v1.2.0Alternatively, resolve to full commit SHAs for even stronger immutability guarantees. 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
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.
🧩 Analysis chain
Overly broad permissions; verify necessity of
contents: write.A linting, type-checking, and testing workflow typically only requires read access to repository contents. The
contents: writepermission should be limited to workflows that commit or push changes back to the repository. Verify that the reusable workflows actually require write access; if not, reduce tocontents: read.I'll verify the review comment by inspecting the CI workflow and checking if
contents: writeis actually necessary.Length of output: 396
🏁 Script executed:
Length of output: 24
🏁 Script executed:
Length of output: 402
🏁 Script executed:
Length of output: 24
🏁 Script executed:
Length of output: 202
Length of output: 0
🏁 Script executed:
Length of output: 11
🏁 Script executed:
Length of output: 26
Change
contents: writetocontents: readin the CI workflow.The ci.yml workflow is a pure orchestrator that delegates to external reusable workflows for linting, type-checking, and testing. It performs no direct write, commit, or push operations. Since these are inherently read-only operations,
contents: writeis unnecessary and violates the principle of least privilege. Update line 12 tocontents: read.🤖 Prompt for AI Agents