Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Commit b068083

Browse files
authored
Use GitHub Actions' bearer: token rather than a basic auth token (#30)
1 parent d18aa4d commit b068083

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ jobs:
6262
- run: dart pub run grinder protobuf
6363
- name: Deploy
6464
run: dart pub run grinder pkg-github-release pkg-github-linux
65-
env:
66-
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
67-
GH_USER: sassbot
65+
env: {GH_BEARER_TOKEN: "${{ github.token }}"}
6866

6967
deploy_github_macos:
7068
name: "Deploy Github: Mac OS"
@@ -81,9 +79,7 @@ jobs:
8179
- run: dart pub run grinder protobuf
8280
- name: Deploy
8381
run: dart pub run grinder pkg-github-macos
84-
env:
85-
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
86-
GH_USER: sassbot
82+
env: {GH_BEARER_TOKEN: "${{ github.token }}"}
8783

8884
deploy_github_windows:
8985
name: "Deploy Github: Windows"
@@ -100,6 +96,4 @@ jobs:
10096
- run: dart pub run grinder protobuf
10197
- name: Deploy
10298
run: dart pub run grinder pkg-github-windows
103-
env:
104-
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
105-
GH_USER: sassbot
99+
env: {GH_BEARER_TOKEN: "${{ github.token }}"}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
typed_data: ^1.1.0
2323

2424
dev_dependencies:
25-
cli_pkg: ^1.0.0-beta.8
25+
cli_pkg: ^1.2.0
2626
grinder: ^0.8.0
2727
protoc_plugin: ^19.0.0
2828
path: ^1.6.0

tool/grind.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import 'package:grinder/grinder.dart';
1010
import 'utils.dart';
1111

1212
main(List<String> args) {
13+
pkg.githubBearerToken.value = Platform.environment["GH_BEARER_TOKEN"];
14+
1315
pkg.addGithubTasks();
1416
grind(args);
1517
}

0 commit comments

Comments
 (0)