|
15 | 15 | branches: |
16 | 16 | - '*' |
17 | 17 |
|
| 18 | +permissions: {} |
| 19 | + |
18 | 20 | jobs: |
19 | 21 | rubocop: |
20 | 22 | runs-on: ubuntu-latest |
| 23 | + permissions: |
| 24 | + contents: read |
21 | 25 | steps: |
22 | | - - uses: actions/checkout@v4 |
| 26 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 27 | + with: |
| 28 | + persist-credentials: false |
23 | 29 | - run: rm Gemfile.lock |
24 | | - - uses: ruby/setup-ruby@v1 |
| 30 | + - uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # zizmor: ignore[cache-poisoning] -- cached gems are used for testing, not release artifact generation # v1.316.0 |
25 | 31 | with: |
26 | 32 | ruby-version: "4.0" |
27 | 33 | bundler-cache: true |
28 | 34 | - run: bundle exec rubocop |
29 | 35 |
|
| 36 | + lint-actions: |
| 37 | + name: GitHub Actions audit |
| 38 | + runs-on: ubuntu-latest |
| 39 | + permissions: |
| 40 | + contents: read |
| 41 | + |
| 42 | + steps: |
| 43 | + - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 44 | + with: |
| 45 | + persist-credentials: false |
| 46 | + |
| 47 | + - name: Run actionlint |
| 48 | + uses: rhysd/actionlint@393031adb9afb225ee52ae2ccd7a5af5525e03e8 # v1.7.11 |
| 49 | + |
| 50 | + - name: Run zizmor |
| 51 | + uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2 |
| 52 | + with: |
| 53 | + advanced-security: false |
| 54 | + |
30 | 55 | cruby: |
31 | 56 | strategy: |
32 | 57 | fail-fast: false |
33 | 58 | matrix: |
34 | 59 | ruby: ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0", "ruby-head", "truffleruby-head", "jruby-9.4", "jruby-10.0", "jruby-head"] |
35 | 60 | runs-on: ubuntu-latest |
| 61 | + permissions: |
| 62 | + contents: read |
36 | 63 | steps: |
37 | | - - uses: actions/checkout@v4 |
| 64 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 65 | + with: |
| 66 | + persist-credentials: false |
38 | 67 | - run: rm Gemfile.lock |
39 | | - - uses: ruby/setup-ruby@v1 |
| 68 | + - uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # zizmor: ignore[cache-poisoning] -- cached gems are used for testing, not release artifact generation # v1.316.0 |
40 | 69 | with: |
41 | 70 | ruby-version: ${{matrix.ruby}} |
42 | 71 | bundler-cache: true |
43 | 72 | - run: bundle exec rake |
44 | 73 |
|
45 | 74 | cruby-nokogiri-system-libraries: |
46 | 75 | runs-on: ubuntu-latest |
| 76 | + permissions: |
| 77 | + contents: read |
47 | 78 | steps: |
48 | | - - uses: actions/checkout@v4 |
| 79 | + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 |
| 80 | + with: |
| 81 | + persist-credentials: false |
49 | 82 | - run: rm Gemfile.lock |
50 | | - - uses: ruby/setup-ruby@v1 |
| 83 | + - uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1.316.0 |
51 | 84 | with: |
52 | 85 | ruby-version: "4.0" |
53 | 86 | - name: Install nokogiri with system libraries |
|
0 commit comments