Skip to content

Commit

Permalink
MNT: Use hash for Action workflow versions and update, and add depend…
Browse files Browse the repository at this point in the history
…abot, if needed
  • Loading branch information
pllim committed Sep 30, 2024
1 parent 9a24d6a commit e897349
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
directory: ".github/workflows" # Location of package manifests
schedule:
interval: "monthly"
groups:
actions:
patterns:
- "*"

8 changes: 4 additions & 4 deletions .github/workflows/bandit-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ jobs:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Get changed notebooks
id: get-changed-notebooks
uses: tj-actions/changed-files@v44.5.5
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45.0.2
with:
separator: " " # nbconvert accepts space separated file list
safe_output: false # binding to env below
files: |
**/*.ipynb
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ vars.PYTHON_VERSION }}
cache: 'pip'
Expand All @@ -63,7 +63,7 @@ jobs:

- name: Upload sarif artifact to security
if: ${{ failure() }}
uses: github/codeql-action/upload-sarif@v3
uses: github/codeql-action/upload-sarif@5618c9fc1e675841ca52c1c6b1304f5255a905a0 # codeql-bundle-v2.19.0
with:
sarif_file: results.sarif

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0

- name: Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: ${{ vars.PYTHON_VERSION }}

- name: Get changed notebooks
id: get-changed-notebooks
uses: tj-actions/changed-files@v44.5.5
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45.0.2
with:
separator: " " # nbconvert accepts space separated file list
safe_output: false # binding to env below
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:

- name: Upload bandit artifact for PR review
if: ${{ failure() }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: ${{ env.BANDIT_ARTIFACT }}
path: ${{ env.BANDIT_ARTIFACT }}
Expand Down

0 comments on commit e897349

Please sign in to comment.