Repository navigation
fix(ci): resolve the open code-scanning alerts on development #1196
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 |
|---|---|---|
|
|
@@ -9,6 +9,10 @@ on: | |
| jobs: | ||
| sync: | ||
| uses: ConductionNL/.github/.github/workflows/openspec-sync.yml@main | ||
| # What the shared workflow's jobs declare: they label and assign issues. | ||
|
Member
Author
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. 🟢 Minor: the comment describes issue-triage, not openspec-sync The shared openspec-sync |
||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| with: | ||
| app-name: keepiq | ||
| secrets: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,9 @@ on: | |
| - main | ||
| - beta | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lint-check: | ||
| runs-on: ubuntu-latest | ||
|
|
||
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.
🟢 Minor:
buildholdscontents: writeon every run, but only a tag run needs itOnly a
cli-vtag run attaches to the release (startsWith(github.ref, 'refs/tags/cli-v')). The job also runs on branch pushes and same-repopull_request, and it still gets a write token there.actions/checkoutkeeps that token in.git/config(persist-credentialsdefaults to true). The risk is low:go buildruns no repo code, fork PRs get a read-only token, and it's already a big improvement on write-all. The same applies tochecksums.Suggest moving the two "Attach to release" steps into their own job with
if: startsWith(github.ref, 'refs/tags/cli-v'),needs: [build, checksums]andcontents: write, so thatbuildandchecksumsdrop back to read. At minimum, setpersist-credentials: falseon the checkout here.