ci: Do not persist credentials after checkout #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Update Issues Tool | |
on: | |
pull_request: # Trigger for pull requests. | |
types: [opened, synchronize, reopened] | |
paths: | |
update-issues/** | |
workflow_dispatch: # Allows for manual triggering. | |
inputs: | |
ref: | |
description: "The ref to build and test." | |
required: False | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || inputs.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
name: Test Update Issues Tool | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.ref || github.ref }} | |
persist-credentials: false | |
- name: Test | |
run: | | |
cd update-issues | |
npm ci | |
npm test |