Skip to content

Commit

Permalink
Merge pull request #66 from kaitj/maint/dependencies
Browse files Browse the repository at this point in the history
Address security alerts
  • Loading branch information
kaitj authored Mar 7, 2024
2 parents 741a882 + 9e78b6e commit d7d6d08
Show file tree
Hide file tree
Showing 3 changed files with 635 additions and 543 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: 2
updates:
- package-ecosystem: "github-actions"
# Workflow files stored in the default location of `.github/workflows`.
# (You don't need to specify `/.github/workflows` for `directory`.
# You can use `directory: "/"`.)
directory: "/"
# Run on first of each month
schedule:
interval: "monthly"
# Group to submit a single PR if possible
groups:
github-actions:
patterns:
- "*"
9 changes: 5 additions & 4 deletions .github/workflows/grab_articles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup environment
uses: khanlab/actions/.github/actions/[email protected].3
uses: khanlab/actions/.github/actions/[email protected].6
with:
python-version: "3.10"

- name: Checkout master branch
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Run notebook
run: |
Expand All @@ -34,7 +34,7 @@ jobs:
# Creates a PR for review if new article(s) found
- name: Create pull request
uses: peter-evans/create-pull-request@v4
uses: peter-evans/create-pull-request@v6
if: steps.article-condition.outputs.hit == 'true'
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -53,8 +53,9 @@ jobs:
git config --local user.name "github-actions[bot]"
git commit -m "Update publications spreadsheet" -a
# Look to replace this with a versioned github-push action
- name: Push to master
uses: ad-m/github-push-action@master
uses: ad-m/github-push-action@v0.8.0
if: steps.article-condition.outputs.hit != 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit d7d6d08

Please sign in to comment.