diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a08e426..cb311ba 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,8 +12,12 @@ updates: directory: "/" patterns: ["*"] multi-ecosystem-group: "dependencies" + cooldown: + default-days: 7 - package-ecosystem: "pip" directory: "/" patterns: ["*"] multi-ecosystem-group: "dependencies" + cooldown: + default-days: 7 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 70a1986..3e3c786 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,10 +30,12 @@ jobs: timeout-minutes: 30 steps: - name: Clone code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.x' @@ -54,7 +56,7 @@ jobs: cp results.json build/ - name: Deploy the built files - uses: JamesIves/github-pages-deploy-action@v4 + uses: JamesIves/github-pages-deploy-action@fa24774553152dd7873cd16ebd8d959b010c5445 # v4.9.0 with: folder: build # The folder the action should deploy. git-config-name: github-actions[bot] diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1658b4a..9868129 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,16 +13,21 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: tests: runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: Clone code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Set up Python - uses: actions/setup-python@v7 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version: '3.10' diff --git a/.github/zizmor.yml b/.github/zizmor.yml new file mode 100644 index 0000000..96fbd9a --- /dev/null +++ b/.github/zizmor.yml @@ -0,0 +1,9 @@ +rules: + unpinned-uses: + config: + # Allow BeeWare-provided actions to be unpinned. If an attacker is in a + # position to exploit those actions, they're probably able to exploit + # repositories directly; and it's significantly easier for our internal + # actions to automatically be the most recent versions. + policies: + beeware/*: ref-pin diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ae0222..04d4649 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,5 +30,10 @@ repos: hooks: - id: python-check-blanket-noqa + - repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: v1.29.0 + hooks: + - id: zizmor + ci: autoupdate_schedule: quarterly