From f265a5a7260669a4fafdc29b809b68974080d778 Mon Sep 17 00:00:00 2001 From: miroslavpojer Date: Fri, 8 Nov 2024 14:40:08 +0100 Subject: [PATCH 1/2] #6 - Do Not Persist Credentials - Workflows - Disabled saving of credential in all checkout actions. --- .github/workflows/build.yml | 9 +++++---- .github/workflows/release_draft.yml | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b273ba5..754451c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,10 +16,10 @@ name: Build and Test on: - pull_request: - branches: - - '**' - types: [ opened, synchronize, reopened ] +# pull_request: +# branches: +# - '**' +# types: [ opened, synchronize, reopened ] jobs: test: @@ -34,6 +34,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + persist-credentials: false - uses: actions/setup-python@v5.1.1 with: diff --git a/.github/workflows/release_draft.yml b/.github/workflows/release_draft.yml index 72bee14..0ba7114 100644 --- a/.github/workflows/release_draft.yml +++ b/.github/workflows/release_draft.yml @@ -88,6 +88,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + persist-credentials: false - uses: actions/setup-python@v5.1.1 with: From 0b4e25c4f039dca3d0dc4f25d82b2c45173981a5 Mon Sep 17 00:00:00 2001 From: miroslavpojer Date: Fri, 8 Nov 2024 14:47:06 +0100 Subject: [PATCH 2/2] - Uncomment 'on' segment. --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 754451c..8ce73c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,10 +16,10 @@ name: Build and Test on: -# pull_request: -# branches: -# - '**' -# types: [ opened, synchronize, reopened ] + pull_request: + branches: + - '**' + types: [ opened, synchronize, reopened ] jobs: test: @@ -84,3 +84,4 @@ jobs: with: name: coverage-report path: coverage_overall.xml +