Skip to content

Commit 7ecd63e

Browse files
committed
fix: add github-token parameter to workflow examples
The action.yml had an invalid default value for github-token that doesn't work in GitHub Actions (action defaults don't support expressions). Now explicitly passing the token in example workflow.
1 parent 14af435 commit 7ecd63e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/example.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
pg-host: localhost
4545
pg-port: 5432
4646
pg-database: testdb
47+
github-token: ${{ secrets.GITHUB_TOKEN }}
4748

4849
mysql-preview:
4950
runs-on: ubuntu-latest
@@ -80,6 +81,7 @@ jobs:
8081
mysql-host: 127.0.0.1
8182
mysql-port: 3306
8283
mysql-database: testdb
84+
github-token: ${{ secrets.GITHUB_TOKEN }}
8385

8486
sqlite-preview:
8587
runs-on: ubuntu-latest
@@ -98,6 +100,7 @@ jobs:
98100
baseline-schema-file: examples/sqlite3def-current.sql
99101
schema-file: examples/sqlite3def-desired.sql
100102
sqlite-database: test.db
103+
github-token: ${{ secrets.GITHUB_TOKEN }}
101104

102105
mssql-preview:
103106
runs-on: ubuntu-latest
@@ -147,3 +150,4 @@ jobs:
147150
mssql-host: localhost
148151
mssql-port: 1433
149152
mssql-database: testdb
153+
github-token: ${{ secrets.GITHUB_TOKEN }}

action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ inputs:
8484
github-token:
8585
description: 'GitHub token for commenting on pull requests'
8686
required: false
87-
default: ${{ github.token }}
8887

8988
runs:
9089
using: 'node24'

0 commit comments

Comments
 (0)