Skip to content

Commit 9a855af

Browse files
authored
Merge pull request #1064 from connorshea/update-actions
Update GitHub Actions setup to use pinned SHAs, limited permissions
2 parents 7c8b10f + 3ce9602 commit 9a855af

3 files changed

Lines changed: 39 additions & 4 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
groups:
6+
github-actions:
7+
patterns:
8+
- "*"
9+
schedule:
10+
interval: weekly
11+
cooldown:
12+
default-days: 7

‎.github/workflows/ruby.yml‎

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,35 @@ on:
66
pull_request:
77
branches: ['**']
88

9+
permissions: {}
10+
911
jobs:
12+
lint-actions:
13+
name: GitHub Actions audit
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18+
with:
19+
persist-credentials: false
20+
21+
- name: Run actionlint
22+
uses: rhysd/actionlint@393031adb9afb225ee52ae2ccd7a5af5525e03e8 # v1.7.11
23+
24+
- name: Run zizmor
25+
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
26+
with:
27+
advanced-security: false
28+
1029
tests:
1130
runs-on: ubuntu-latest
1231
name: Linter
1332
steps:
14-
- uses: actions/checkout@v3
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34+
with:
35+
persist-credentials: false
1536
- name: Set up Python
16-
uses: actions/setup-python@v4
37+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1738
with:
1839
python-version: 3.8
1940
- name: Install yamllint
@@ -23,7 +44,7 @@ jobs:
2344
- name: Lint YAML files
2445
run: yamllint gems rubies
2546
- name: Set up Ruby
26-
uses: ruby/setup-ruby@v1
47+
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0
2748
with:
2849
ruby-version: 3.4
2950
- name: Install ruby dependencies

‎.github/workflows/website.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
push:
55
branches: [ master ]
66

7+
permissions: {}
8+
79
jobs:
810
notify:
911
if: github.repository_owner == 'rubysec'
1012
runs-on: ubuntu-latest
1113
steps:
1214
- name: Send Repository Dispatch event
13-
uses: peter-evans/repository-dispatch@v1
15+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
1416
with:
1517
token: ${{ secrets.REPO_ACCESS_TOKEN }}
1618
repository: rubysec/rubysec.github.io

0 commit comments

Comments
 (0)