Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

fix workflow permissions for starting workflow in another repo (#3049)

Dennis Kuijsb58931228967
diff --git a/.github/workflows/extensions.yml b/.github/workflows/extensions.yml
index 527b1c9aa..de00b2154 100644
--- a/.github/workflows/extensions.yml
+++ b/.github/workflows/extensions.yml
@@ -1,4 +1,5 @@
name: Extensions
+
on:
workflow_call:
inputs:
@@ -10,6 +11,10 @@ on:
GH_EXTENSIONS_TOKEN:
required: true
+permissions:
+ actions: write
+ contents: read
+
jobs:
check-artifacts:
name: Check if artifacts are available
@@ -21,7 +26,7 @@ jobs:
.ci_cd/check_artifacts.sh "${{ inputs.version }}" "${{ inputs.is_release }}"
create-extensions-release:
- name: Create new release in openremote/extensions
+ name: Create release
runs-on: ubuntu-latest
needs: check-artifacts
if: ${{ inputs.is_release == 'true' }}
@@ -31,7 +36,7 @@ jobs:
GH_TOKEN: ${{ secrets.GH_EXTENSIONS_TOKEN }}
trigger-extensions-ci-cd:
- name: Run CI/CD in openremote/extensions
+ name: Run CI/CD
runs-on: ubuntu-latest
needs: check-artifacts
steps: