diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..066427b9d7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,12 @@ +version: 2 +updates: + - package-ecosystem: github-actions + directory: "/" + groups: + github-actions: + patterns: + - "*" + schedule: + interval: weekly + cooldown: + default-days: 7 diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index fefbc9432e..c645e7013f 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -6,14 +6,35 @@ on: pull_request: branches: ['**'] +permissions: {} + jobs: + lint-actions: + name: GitHub Actions audit + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + + - name: Run actionlint + uses: rhysd/actionlint@393031adb9afb225ee52ae2ccd7a5af5525e03e8 # v1.7.11 + + - name: Run zizmor + uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3 + with: + advanced-security: false + tests: runs-on: ubuntu-latest name: Linter steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: 3.8 - name: Install yamllint @@ -23,7 +44,7 @@ jobs: - name: Lint YAML files run: yamllint gems rubies - name: Set up Ruby - uses: ruby/setup-ruby@v1 + uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f # v1.310.0 with: ruby-version: 3.4 - name: Install ruby dependencies diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index a0d869f3fb..447d597784 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -4,13 +4,15 @@ on: push: branches: [ master ] +permissions: {} + jobs: notify: if: github.repository_owner == 'rubysec' runs-on: ubuntu-latest steps: - name: Send Repository Dispatch event - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 with: token: ${{ secrets.REPO_ACCESS_TOKEN }} repository: rubysec/rubysec.github.io