Skip to content

Commit

Permalink
ci: add GITHUB_TOKEN in env at workflow level
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Nov 11, 2024
1 parent 3fda11f commit b4a06ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
name: Build and Test
env:
RUSTFLAGS: -Dwarnings
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches:
Expand Down Expand Up @@ -66,5 +67,3 @@ jobs:
contents: write
pull-requests: write
packages: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion workspace/gh-workflow-gen/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ fn main() {
let release = Job::new("Release")
.needs("build")
.permissions(permissions.clone())
.add_env(Env::github())
.add_step(Step::checkout())
.add_step(ReleasePlz::default().command(Command::ReleasePR));

Workflow::new("Build and Test")
.add_env(flags)
.add_env(Env::github())
.permissions(permissions)
.on(event)
.add_job("build", build)
Expand Down

0 comments on commit b4a06ee

Please sign in to comment.