diff --git a/.github/workflows/publish-branch.yml b/.github/workflows/publish-branch.yml
index 1ee8ee22bea..1e5b99bd0b0 100644
--- a/.github/workflows/publish-branch.yml
+++ b/.github/workflows/publish-branch.yml
@@ -12,8 +12,9 @@ on:
         description: 'hdf5 target bucket directory'
         type: string
         required: true
-    permissions:
-      contents: read
+
+permissions:
+  contents: read
 
 jobs:
   publish-tag:
diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml
index d7c7fd091d1..725c2b09c44 100644
--- a/.github/workflows/publish-release.yml
+++ b/.github/workflows/publish-release.yml
@@ -12,8 +12,9 @@ on:
         description: 'HDF5 target bucket directory'
         type: string
         required: true
-    permissions:
-      contents: read
+
+permissions:
+  contents: read
 
 jobs:
   publish-tag: