Skip to content

Commit b33a317

Browse files
tido64Copilot
andcommitted
ci: add workflow for fixing vulnerabilities
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2770434 commit b33a317

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Fix vulnerabilities
2+
on:
3+
schedule:
4+
# Run at 4:00 every Monday
5+
- cron: 0 4 * * 1
6+
workflow_dispatch:
7+
inputs:
8+
dry-run:
9+
description: Print the pull request instead of creating it
10+
type: boolean
11+
default: true
12+
concurrency:
13+
# Prevent concurrent runs from pushing to the same branch
14+
group: ${{ github.workflow }}
15+
cancel-in-progress: false
16+
jobs:
17+
fix:
18+
name: "Fix vulnerabilities"
19+
if: ${{ github.repository == 'microsoft/react-native-test-app' }}
20+
permissions:
21+
contents: write
22+
copilot-requests: write
23+
pull-requests: write
24+
runs-on: ubuntu-24.04
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28+
with:
29+
filter: blob:none
30+
persist-credentials: false
31+
- name: Fix vulnerabilities
32+
uses: microsoft/rnx-kit/.github/actions/fix-vulnerabilities@53a160bcc194fcbe49511b9f0912522e740685ae
33+
with:
34+
projects: "."
35+
# Scheduled runs have no inputs
36+
dry-run: ${{ inputs.dry-run == true }}
37+
app-client-id: ${{ vars.APP_ID }}
38+
app-private-key: ${{ secrets.PRIVATE_KEY }}
39+
timeout-minutes: 30

0 commit comments

Comments
 (0)