From 2a8bea506c4bea9661ec1572371f6ada061f8b2b Mon Sep 17 00:00:00 2001 From: Samuel Chai Date: Mon, 21 Apr 2025 08:56:16 -0400 Subject: [PATCH 1/3] Testing action --- .github/workflows/pr.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 32f03fe..5c57375 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -58,4 +58,16 @@ jobs: commit-message: "Updating tracked Git version in source code" branch: ${{ github.head_ref }} github-token: ${{ secrets.GITHUB_TOKEN }} - commit-all: 'true' \ No newline at end of file + commit-all: 'true' + use-pull-request: 'true' + + - name: Outputs + shell: bash + env: + SHA: ${{ steps.commit.outputs.sha }} + BRANCH: ${{ steps.commit.outputs.branch }} + PR_NUMBER: ${{ steps.commit.outputs.pr-number }} + run: | + echo $SHA + echo $BRANCH + echo $PR_NUMBER \ No newline at end of file From 3a9c037e46586fb6f7b172953a22eff542023519 Mon Sep 17 00:00:00 2001 From: Samuel Chai Date: Mon, 21 Apr 2025 08:58:29 -0400 Subject: [PATCH 2/3] Security events' --- .github/workflows/pr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 5c57375..1d259e9 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,6 +15,7 @@ jobs: packages: write attestations: write id-token: write + security-events: write steps: - name: Checkout Code From 2b43f4915d6707c88a0d6e5c69652a59876a99c0 Mon Sep 17 00:00:00 2001 From: Samuel Chai Date: Mon, 21 Apr 2025 09:16:15 -0400 Subject: [PATCH 3/3] Trying with write-all --- .github/workflows/pr.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 1d259e9..94e5e3d 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -10,13 +10,7 @@ jobs: name: Validate Pull Request runs-on: ubuntu-latest - permissions: - contents: write - packages: write - attestations: write - id-token: write - security-events: write - + permissions: "write-all" steps: - name: Checkout Code uses: actions/checkout@v4