Skip to content

Commit abc92dd

Browse files
committed
update
1 parent dbce13e commit abc92dd

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

Diff for: .github/workflows/main.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@ on:
1010
permissions:
1111
actions: write
1212
contents: read
13+
id-token: write
1314

1415
jobs:
1516
build:
1617
runs-on: ubuntu-latest
1718
strategy:
1819
matrix:
19-
node: [ 18 ]
20+
node: [ 18, 20 ]
2021
name: Node ${{ matrix.node }} sample
2122
steps:
22-
- name: Cancel Previous Runs
23-
uses: styfle/[email protected]
24-
2523
- name: Checkout repo
2624
uses: actions/checkout@v4
2725

@@ -38,5 +36,5 @@ jobs:
3836

3937
- uses: qltysh/qlty-action/coverage@main
4038
with:
41-
coverage-token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
39+
oidc: true
4240
files: coverage/lcov.info

Diff for: .qlty/.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cache
2-
logs
3-
out
4-
plugins
1+
*
2+
!configs
3+
!hooks
4+
!qlty.toml

Diff for: README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ This repository uses [Vitest](https://vitest.dev/) for testing and generating co
1212
- [Next.js](https://nextjs.org/)
1313
- [Vitest](https://vitest.dev/)
1414
- Run tests with `npm test`
15-
- An account on Qlty (free for open source)
16-
- `QLTY_COVERAGE_TOKEN` is set as a GitHub Actions [repository secret](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository)
15+
- An account on [Qlty Cloud](https://qlty.sh) (free)
16+
17+
> [!NOTE]
18+
>
19+
> This repository is using GitHub's OpenID Connect (OIDC) to authenticate the coverage upload with Qlty Cloud instead of storing a coverage token as a GitHub Actions secret.
1720
1821
## Set up
1922

0 commit comments

Comments
 (0)