We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee5aac commit 70f007aCopy full SHA for 70f007a
.github/workflows/update-dependencies.yml
@@ -7,7 +7,7 @@ jobs:
7
update:
8
name: Update dependencies
9
runs-on: macos-latest
10
- if: contains(github.event.pull_request.labels.*.name, 'Update dependencies')
+ if: contains(github.event.pull_request.labels.*.name, 'Update dependencies') && ${{ github.event.pull_request.head.repo.full_name == 'github/codeql-action' }}
11
steps:
12
- name: Checkout repository
13
uses: actions/checkout@v2
@@ -24,8 +24,8 @@ jobs:
24
env:
25
BRANCH: '${{ github.head_ref }}'
26
run: |
27
- git fetch
28
- git checkout $BRANCH
+ git fetch origin "$BRANCH" --depth=1
+ git checkout "origin/$BRANCH"
29
sudo npm install --force -g npm@latest
30
npm install
31
npm ci
0 commit comments