Skip to content

Commit 299447e

Browse files
eloymgguicaulada
andauthored
fix(run-capslock): checkout with credentials needed (#1259)
* remove checkout * fix(run-capslock): checkout with credentials needed * added cleanup of chechout credentials * Apply suggestion from @guicaulada Co-authored-by: Guilherme Caulada <[email protected]> --------- Co-authored-by: Guilherme Caulada <[email protected]>
1 parent 4c884da commit 299447e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

actions/run-capslock/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ runs:
2828
- name: Checkout
2929
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3030
with:
31-
persist-credentials: false
31+
persist-credentials: true
3232
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3333
with:
3434
go-version: "${{ inputs.go-version }}"
@@ -54,6 +54,8 @@ runs:
5454
OUTPUT_PLACE: ${{ inputs.output-place }}
5555
run: |
5656
${GITHUB_ACTION_PATH}/capslock.sh
57+
# Remove checkout credentials
58+
- uses: grafana/shared-workflows/actions/remove-checkout-credentials@2c55567fed8874f47886e035f4e91f79f6039149 # v0.1.0
5759
- uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
5860
if: steps.capslock-run.outputs.output != ''
5961
with:

0 commit comments

Comments
 (0)