diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 00aea0a..63b36f3 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -5,3 +5,8 @@ updates: directory: "/" schedule: interval: "weekly" # Check for updates to GitHub Actions every week + ignore: + # I just want update action when major/minor version is updated. patch updates are too noisy. + - dependency-name: '*' + update-types: + - version-update:semver-patch diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 4dfa1a6..2470d74 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - run: cargo build --verbose - run: cargo test update_package_version -- 1.0.0 --nocapture - run: cargo test @@ -22,6 +22,6 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: Cysharp/Actions/.github/actions/setup-dotnet@main - run: dotnet build -c Debug diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 5a9600d..9b243ec 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -19,14 +19,14 @@ jobs: steps: - name: Load secrets id: op-load-secret - uses: 1password/load-secrets-action@v2 + uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0 with: export-env: false env: OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }} CARGO_REGISTRY_TOKEN: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/CARGO_REGISTRY_TOKEN/credential" - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - run: cargo build --verbose - run: cargo test update_package_version -- ${{ inputs.tag }} --nocapture - run: | @@ -38,7 +38,7 @@ jobs: CARGO_REGISTRY_TOKEN: ${{ steps.op-load-secret.outputs.CARGO_REGISTRY_TOKEN }} - run: git tag ${{ inputs.tag }} - name: Push changes - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} @@ -51,14 +51,14 @@ jobs: steps: - name: Load secrets id: op-load-secret - uses: 1password/load-secrets-action@v2 + uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0 with: export-env: false env: OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }} NUGET_KEY: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/NUGET_KEY/credential" - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: Cysharp/Actions/.github/actions/setup-dotnet@main # pack nuget - run: dotnet build -c Release -p:Version=${{ inputs.tag }}