Skip to content

Commit

Permalink
fix: github permissions
Browse files Browse the repository at this point in the history
- [x] add permissions to tests workflow
- [x] update actions versions to latest
- [x] add github actions to dependabot updates
  - [x] group minor and patch versions into single PR
  - [x] prefix dependabot PRs with chore(deps)

Signed-off-by: jmeridth <jmeridth@gmail.com>
  • Loading branch information
jmeridth committed Dec 9, 2024
1 parent 02bdc66 commit 7b412ff
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
27 changes: 22 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,27 @@ updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "10:00"
timezone: Europe/Vienna
pull-request-branch-name:
separator: "-"
interval: weekly
commit-message:
prefix: "chore(deps)"
open-pull-requests-limit: 99
rebase-strategy: disabled
groups:
dependencies:
applies-to: version-updates
update-types:
- "minor"
- "patch"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: weekly
commit-message:
prefix: "chore(deps)"
open-pull-requests-limit: 99
groups:
dependencies:
applies-to: version-updates
update-types:
- "minor"
- "patch"
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@ on:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v1
uses: actions/checkout@v4.2.2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@v1.202.0

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium test

Unpinned 3rd party Action 'GitHub Actions CI' step
Uses Step
uses 'ruby/setup-ruby' with ref 'v1.202.0', not a pinned commit hash

- name: Get NodeJS version
run: echo "NODE_VERSION=$(cat .node-version)" >> $GITHUB_OUTPUT
id: node_version

- name: Set up NodeJS
uses: actions/setup-node@v1
uses: actions/setup-node@v4.1.0
with:
node-version: "${{ steps.node_version.outputs.NODE_VERSION }}"

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ Brewfile.lock.json
Gemfile.lock
.jekyll-metadata
.vscode
.tool-versions

0 comments on commit 7b412ff

Please sign in to comment.