Skip to content

Commit

Permalink
Move permissions of GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
cncastillo committed Jul 12, 2024
1 parent 61cad11 commit 0370da9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/Benchmark.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
name: Benchmarks
permissions:
contents: write # contents permission to update benchmark contents in gh-pages branch
statuses: read
deployments: write # deployments permission to deploy GitHub pages website

on:
pull_request:
Expand Down Expand Up @@ -32,8 +28,12 @@ on:

jobs:
benchmark:
if: "!contains(github.event.head_commit.message, '[skip benchmarks]')"
if: ${{ !contains(github.event.head_commit.message, '[skip benchmarks]') }}
runs-on: ubuntu-latest
permissions:
contents: write # contents permission to update benchmark contents in gh-pages branch
statuses: read
deployments: write # deployments permission to deploy GitHub pages website
steps:
- uses: actions/checkout@v4
- name: Download Buildkite Artifacts
Expand All @@ -58,7 +58,7 @@ jobs:
tool: 'julia'
output-file-path: ${{ steps.locate.outputs.path }}
benchmark-data-dir-path: "benchmarks"
summary-always: true
# summary-always: true # I think this doesn't work on PRs
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-always: true
alert-threshold: "150%"
Expand Down

0 comments on commit 0370da9

Please sign in to comment.