Skip to content

Commit

Permalink
fix: use implicit GITHUB_TOKEN on Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nebolsin committed Sep 25, 2023
1 parent fd4bd28 commit a792948
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coveralls-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Wait on tests (PR)
uses: lewagon/[email protected]
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,16 @@ on: [ push, pull_request ]
jobs:
test-linux:
uses: ./.github/workflows/test.yml
secrets:
token: ${{ secrets.COVERALLS_REPO_TOKEN }}

test-macos:
uses: ./.github/workflows/test.yml
with:
os: macos
secrets:
token: ${{ secrets.COVERALLS_REPO_TOKEN }}

test-windows:
uses: ./.github/workflows/test.yml
with:
os: windows
secrets:
token: ${{ secrets.COVERALLS_REPO_TOKEN }}

coveralls:
runs-on: ubuntu-latest
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@ on:
type: boolean
default: true
description: |
Whether to store the coverage data as an artifact.
secrets:
token:
required: true
Whether to store the coverage data as an artifact.
env:
COVERALLS_SERVICE_NUMBER: ${{ inputs.build_id }}
COVERALLS_REPO_TOKEN: ${{ secrets.token }}

jobs:
test:
Expand All @@ -42,7 +38,7 @@ jobs:
build_id: ${{ inputs.build_id }}
result: ${{ steps.coveralls.outputs.coveralls-api-result}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
Expand Down

0 comments on commit a792948

Please sign in to comment.