From a6b77dc988849714f7eb930838602ff55db23d35 Mon Sep 17 00:00:00 2001 From: chrisdca Date: Thu, 3 Jul 2025 12:15:38 -0500 Subject: [PATCH 1/2] Add debugging workflow with artifact creation and environment variable setup --- .github/workflows/debug.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/debug.yml diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml new file mode 100644 index 0000000..187f0fb --- /dev/null +++ b/.github/workflows/debug.yml @@ -0,0 +1,35 @@ +name: Worflow for Debugging +on: workflow_dispatch +jobs: + creating-artefacts: + runs-on: ubuntu-latest + steps: + - name: Create test file + run: echo "This is a test file." > test.txt + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: logs + path: test.txt + configuring-enviroment-variables: + runs-on: ubuntu-latest + needs: creating-artefacts + steps: + - name: Set 2 environment variables + run: | + echo ACTIONS_RUNNER_DEBUG=${{ vars.ACTIONS_RUNNER_DEBUG }} + echo ACTIONS_STEP_DEBUG=${{ vars.ACTIONS_STEP_DEBUG }} + configuring-step-summary: + runs-on: ubuntu-latest + steps: + - name: Set step summary + run: echo "This is a log about the step summary" >> $GITHUB_STEP_SUMMARY + - name: Set other step summary + run: echo "This is other log about the step summary" >> $GITHUB_STEP_SUMMARY + adding-logs-by-step: + runs-on: ubuntu-latest + steps: + - name: Add logs by step + run: | + echo "This is a log about the step" + echo "This is another log about the step" From d0e5ad7f0f4a518313845d32ed55949f4a0512c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20D=C3=ADaz?= <164126437+christianncode@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:19:07 -0500 Subject: [PATCH 2/2] Potential fix for code scanning alert no. 8: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .github/workflows/debug.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 187f0fb..728436c 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -1,5 +1,8 @@ name: Worflow for Debugging on: workflow_dispatch +permissions: + contents: read + actions: read jobs: creating-artefacts: runs-on: ubuntu-latest