Skip to content

Commit 4f60ede

Browse files
committed
Fix GH action permissions in rust.yml and docs.yaml workflows
1 parent 794f30e commit 4f60ede

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docs.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ on:
2727
name: Deploy DataFusion site
2828

2929
jobs:
30+
permissions:
31+
contents: write
3032
build-docs:
3133
name: Build docs
3234
runs-on: ubuntu-latest

.github/workflows/rust.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ on:
4242
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
4343
workflow_dispatch:
4444

45+
permissions:
46+
contents: read
47+
actions: write
48+
4549
jobs:
4650
# Check crate compiles and base cargo check passes
4751
linux-build-lib:
@@ -740,7 +744,7 @@ jobs:
740744
with:
741745
submodules: true
742746
fetch-depth: 1
743-
747+
744748
- name: Mark repository as safe for git
745749
# Required for git commands inside container (avoids "dubious ownership" error)
746750
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

0 commit comments

Comments
 (0)