Skip to content

Commit

Permalink
ci: use default branch for trusted actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nikaro committed Jul 30, 2024
1 parent 42bb26c commit 565e428
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@main
with:
ref: ${{ github.ref_name }}

- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
uses: actions/setup-go@main
with:
cache: false
go-version: stable
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@main
with:
fetch-depth: 0

Expand All @@ -62,15 +62,15 @@ jobs:
run: echo "tag=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"

- name: Dry run
uses: commitizen-tools/commitizen-action@1f11eb222996406681d2bfa1eb3d997eca46557c # 0.21.0
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ github.token }}
changelog_increment_filename: _changelog.md
dry_run: true

- name: Bump
id: cz
uses: commitizen-tools/commitizen-action@1f11eb222996406681d2bfa1eb3d997eca46557c # 0.21.0
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ github.token }}
changelog_increment_filename: _changelog.md
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
uses: actions/checkout@main

- name: Run pre-commit
uses: ./pre-commit
Expand Down

0 comments on commit 565e428

Please sign in to comment.