Skip to content

Terminal interface to find, download, and stream movies, TV shows, and live TV using local media players.

ci: harden workflow script environment variables and permissions

Samir Hossains6ac27bedf1d1
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 82d307f..c3f9625 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -11,6 +11,9 @@ on:
description: "Release tag to publish (e.g. v0.1.11)"
required: true
+permissions:
+ contents: read
+
jobs:
publish:
name: Publish
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 3e60014..47b3e1b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -198,8 +198,9 @@ jobs:
- name: Extract Release Notes from CHANGELOG.md
id: changelog
+ env:
+ VERSION: ${{ needs.check-version.outputs.version }}
run: |
- VERSION="${{ needs.check-version.outputs.version }}"
NOTES=$(awk -v ver="$VERSION" '
$0 ~ "^## \\[" ver "\\]" { flag=1; next }
flag && /^## \[/ { flag=0 }