You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by gi...@apache.org on 2026/04/29 15:55:46 UTC
(datafusion) branch main updated: Fix GH action permissions in `rust.yml` and `docs.yaml` workflows (#21884)
This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 66980e26df Fix GH action permissions in `rust.yml` and `docs.yaml` workflows (#21884)
66980e26df is described below
commit 66980e26df75740006229125acbf6815ee04a9f4
Author: Jeffrey Vo <je...@gmail.com>
AuthorDate: Thu Apr 30 00:25:12 2026 +0900
Fix GH action permissions in `rust.yml` and `docs.yaml` workflows (#21884)
## Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax. For example
`Closes #123` indicates that this PR will close issue #123.
-->
Followup to https://github.com/apache/datafusion/pull/21838 for the rest
of the workflows
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->
## What changes are included in this PR?
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->
## Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->
---
.github/workflows/docs.yaml | 2 ++
.github/workflows/rust.yml | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 7713d5dd31..73698c06a4 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -27,6 +27,8 @@ on:
name: Deploy DataFusion site
jobs:
+ permissions:
+ contents: write
build-docs:
name: Build docs
runs-on: ubuntu-latest
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index b77a8617eb..3f6462f0f0 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -42,6 +42,9 @@ on:
# https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow
workflow_dispatch:
+permissions:
+ contents: read
+
jobs:
# Check crate compiles and base cargo check passes
linux-build-lib:
@@ -740,7 +743,7 @@ jobs:
with:
submodules: true
fetch-depth: 1
-
+
- name: Mark repository as safe for git
# Required for git commands inside container (avoids "dubious ownership" error)
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org