From 26a1664f792df4a7ac25c0e6af32da1e3d21c4ea Mon Sep 17 00:00:00 2001 From: Nicolas Rol Date: Mon, 7 Oct 2024 15:00:06 +0200 Subject: [PATCH 1/2] add permissions to upload artifact Signed-off-by: Nicolas Rol --- .github/workflows/qa_pr_cpp_centos7.yml | 2 ++ .github/workflows/qa_pr_cpp_ol8.yml | 3 +++ .github/workflows/qa_pr_cpp_ubuntu.yml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.github/workflows/qa_pr_cpp_centos7.yml b/.github/workflows/qa_pr_cpp_centos7.yml index 650b0ab0..34392ffd 100644 --- a/.github/workflows/qa_pr_cpp_centos7.yml +++ b/.github/workflows/qa_pr_cpp_centos7.yml @@ -262,6 +262,8 @@ jobs: container: 'centos:centos7' needs: qa if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + permissions: + contents: write steps: - name: Update mirrors run: | diff --git a/.github/workflows/qa_pr_cpp_ol8.yml b/.github/workflows/qa_pr_cpp_ol8.yml index 87c51050..c7b868b5 100644 --- a/.github/workflows/qa_pr_cpp_ol8.yml +++ b/.github/workflows/qa_pr_cpp_ol8.yml @@ -159,6 +159,8 @@ jobs: container: 'oraclelinux:8' needs: qa if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + permissions: + contents: write steps: - name: Install Dependencies run: | @@ -205,5 +207,6 @@ jobs: - name: Upload asset to release uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # 2.0.4 if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/') + with: files: ${{ steps.metrix-install.outputs.archive_name }}.zip \ No newline at end of file diff --git a/.github/workflows/qa_pr_cpp_ubuntu.yml b/.github/workflows/qa_pr_cpp_ubuntu.yml index a48200de..402d4712 100644 --- a/.github/workflows/qa_pr_cpp_ubuntu.yml +++ b/.github/workflows/qa_pr_cpp_ubuntu.yml @@ -173,6 +173,8 @@ jobs: runs-on: ubuntu-latest needs: qa if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + permissions: + contents: write steps: - name: Install Boost run: | From c911f3151267b260992efb5774622e62cc739afb Mon Sep 17 00:00:00 2001 From: Nicolas Rol Date: Mon, 7 Oct 2024 15:39:00 +0200 Subject: [PATCH 2/2] remove empty line Signed-off-by: Nicolas Rol --- .github/workflows/qa_pr_cpp_ol8.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/qa_pr_cpp_ol8.yml b/.github/workflows/qa_pr_cpp_ol8.yml index c7b868b5..84ceace4 100644 --- a/.github/workflows/qa_pr_cpp_ol8.yml +++ b/.github/workflows/qa_pr_cpp_ol8.yml @@ -207,6 +207,5 @@ jobs: - name: Upload asset to release uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # 2.0.4 if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/') - with: files: ${{ steps.metrix-install.outputs.archive_name }}.zip \ No newline at end of file