Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/llvm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ on:
type: string

# Release create/upload/delete (publishing the LLVM build as a release asset).
# Write permissions given at the job level now instead of at the workflow level
permissions:
contents: write
contents: read

env:
SCCACHE_DIR: ${{ github.workspace }}/sccache
Expand Down Expand Up @@ -67,6 +68,8 @@ jobs:
create-release:
needs: get-hash
if: ${{ github.event_name != 'pull_request' }}
permissions:
contents: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -91,6 +94,8 @@ jobs:
# skip, so it also defeats the implicit success() gate on get-hash —
# require get-hash success explicitly, and that create-release didn't fail.
if: ${{ !cancelled() && needs.get-hash.result == 'success' && needs.create-release.result != 'failure' }}
permissions:
contents: write
runs-on: ${{ matrix.config.runs-on }}

strategy:
Expand Down Expand Up @@ -315,6 +320,8 @@ jobs:
name: Refresh artifact (${{ matrix.config.runner }})
needs: get-hash
if: ${{ github.event_name == 'schedule' }}
permissions:
actions: write
runs-on: ${{ matrix.config.runs-on }}

strategy:
Expand Down
Loading