diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 1d5cb545b8..eb15fa0792 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -40,6 +40,17 @@ enabled: true, }, packageRules: [ + // Pin GitHub Actions to immutable SHAs. + { + matchDepTypes: ["action"], + pinDigests: true, + }, + // Annotate GitHub Actions SHAs with a SemVer version. + { + extends: ["helpers:pinGitHubActionDigests"], + extractVersion: "^(?v?\\d+\\.\\d+\\.\\d+)$", + versioning: "regex:^v?(?\\d+)(\\.(?\\d+)\\.(?\\d+))?$", + }, { // Group upload/download artifact updates, the versions are dependent groupName: "Artifact GitHub Actions dependencies", diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1eb8a5ec70..a3abb70acf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,10 +1,10 @@ name: CI -permissions: { } +permissions: {} on: push: - branches: [ main ] + branches: [main] pull_request: workflow_dispatch: