-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update node ver and (possible) script vulnerability
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '14' | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
@@ -39,19 +39,22 @@ jobs: | |
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download database artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: database | ||
path: database.json | ||
|
||
- name: Commit and push database.json | ||
- name: Commit and push database.json to another repository | ||
run: | | ||
git clone https://github.com/partofmyid/database.git db | ||
cd db | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git config --unset-all http.https://github.com/.extraheader | ||
mv ../database.json . | ||
git add database.json | ||
git commit -m 'Update database.json' | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} |
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