A feature-rich command-line audio/video downloader
[build, test] Harden workflows' security (#5410)
Alexc789fb778798
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 2a1b9a4aa0..12e5426b14 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -1,8 +1,12 @@name: Buildon: workflow_dispatch+permissions:+ contents: readjobs:prepare:+ permissions:+ contents: write # for push_releaseruns-on: ubuntu-latestoutputs:version_suffix: ${{ steps.version_suffix.outputs.version_suffix }}@@ -69,9 +73,6 @@ jobs:python pyinst.py --onedir(cd ./dist/yt-dlp_linux && zip -r ../yt-dlp_linux.zip .)python pyinst.py- - name: Get SHA2-SUMS- id: get_sha- run: |- name: Upload artifactsuses: actions/upload-artifact@v3@@ -248,6 +249,8 @@ jobs:publish_release:+ permissions:+ contents: write # for action-gh-releaseruns-on: ubuntu-latestneeds: [prepare, build_unix, build_windows, build_windows32, build_macos, build_macos_legacy]diff --git a/.github/workflows/core.yml b/.github/workflows/core.ymlindex d0e890b30e..e129186265 100644--- a/.github/workflows/core.yml+++ b/.github/workflows/core.yml@@ -1,5 +1,8 @@name: Core Testson: [push, pull_request]+permissions:+ contents: read+jobs:tests:name: Core Testsdiff --git a/.github/workflows/download.yml b/.github/workflows/download.ymlindex cc2da62fae..2b2387d4f1 100644--- a/.github/workflows/download.yml+++ b/.github/workflows/download.yml@@ -1,5 +1,8 @@name: Download Testson: [push, pull_request]+permissions:+ contents: read+jobs:quick:name: Quick Download Testsdiff --git a/.github/workflows/quick-test.yml b/.github/workflows/quick-test.ymlindex 53b74e2c75..8a0ac98bb8 100644--- a/.github/workflows/quick-test.yml+++ b/.github/workflows/quick-test.yml@@ -1,5 +1,8 @@name: Quick Teston: [push, pull_request]+permissions:+ contents: read+jobs:tests:name: Core Test