Skip to content

Commit

Permalink
Merge pull request Romanitho#456 from Romanitho/sha
Browse files Browse the repository at this point in the history
Replace pin versions to sha
  • Loading branch information
Romanitho authored Oct 30, 2023
2 parents a65bbc1 + fcca758 commit c360ff3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/WAU-AutoCreatePreVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
fetch-depth: 0

- name: Auto Increment Semver Action
uses: MCKanpolat/auto-semver-action@1.0.10
uses: MCKanpolat/auto-semver-action@b0314e8d64baee1c3f74233edb71eb976503a6a4 # 1.0.10
id: versioning
with:
releaseType: prerelease
Expand All @@ -66,14 +66,14 @@ jobs:
echo "Next Release version: ${{ steps.versioning.outputs.version }}"
- name: Overwrite Version.txt file
uses: DamianReeves/write-file-action@v1.2
uses: DamianReeves/write-file-action@0a7fcbe1960c53fc08fe789fa4850d24885f4d84 # v1.2
with:
path: Winget-AutoUpdate/Version.txt
write-mode: overwrite
contents: ${{ steps.versioning.outputs.version }}

- name: Commit & Push
uses: actions-js/push@v1.4
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # v1.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
Expand All @@ -100,7 +100,7 @@ jobs:
cd ..
- name: Create release
uses: "ncipollo/release-action@v1"
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
id: release
with:
tag: "v${{ steps.versioning.outputs.version }}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/WAU-CreateNewVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ jobs:
lfs: "true"

- name: Auto Increment Semver Action
uses: MCKanpolat/auto-semver-action@1.0.10
uses: MCKanpolat/auto-semver-action@b0314e8d64baee1c3f74233edb71eb976503a6a4 # 1.0.10
id: versioning
with:
releaseType: ${{ github.event.inputs.version }}
incrementPerCommit: false
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Overwrite Version.txt file
uses: DamianReeves/write-file-action@v1.2
uses: DamianReeves/write-file-action@0a7fcbe1960c53fc08fe789fa4850d24885f4d84 # v1.2
with:
path: Winget-AutoUpdate/Version.txt
write-mode: overwrite
contents: "${{ steps.versioning.outputs.version }}"

- name: Commit & Push
uses: actions-js/push@v1.4
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # v1.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
Expand All @@ -73,7 +73,7 @@ jobs:
cd ..
- name: Create release
uses: "ncipollo/release-action@v1"
uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
with:
tag: "v${{ steps.versioning.outputs.version }}"
prerelease: ${{ github.event.inputs.pre-release }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
id: ml
# You can override MegaLinter flavor used to have faster performances
# More info at https://megalinter.github.io/flavors/
uses: oxsecurity/megalinter@v7
uses: oxsecurity/megalinter@b48455a119cc28045eee8f1e9d0a542a85e71f4f # v7.5.0
env:
# All available variables are described in documentation
# https://megalinter.github.io/configuration/
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Create Pull Request with applied fixes
id: cpr
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'pull_request' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
uses: peter-evans/create-pull-request@v5
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2
with:
token: ${{ secrets.PAT || secrets.GITHUB_TOKEN }}
commit-message: "[MegaLinter] Apply linters automatic fixes"
Expand All @@ -90,7 +90,7 @@ jobs:
run: sudo chown -Rc $UID .git/
- name: Commit and push applied linter fixes
if: steps.ml.outputs.has_updated_sources == 1 && (env.APPLY_FIXES_EVENT == 'all' || env.APPLY_FIXES_EVENT == github.event_name) && env.APPLY_FIXES_MODE == 'commit' && github.ref != 'refs/heads/main' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository) && !contains(github.event.head_commit.message, 'skip fix')
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
commit_message: "[MegaLinter] Apply linters fixes"

0 comments on commit c360ff3

Please sign in to comment.