Skip to content

Commit

Permalink
ワークフローのサードパーティーアクションのバージョンをコミットハッシュで固定する (#2215)
Browse files Browse the repository at this point in the history
* samples-dressca-consumer-backend.ci.ymlのアクションのバージョンをコミットハッシュで指定。

* samples-dressca-admin-backend.ci.ymlのアクションのバージョンをコミットハッシュで指定。

* samples-console-app-with-di.ci.ymlのアクションのバージョンをコミットハッシュで指定。

* samples-azure-ad-b2c-auth-ci.ymlのアクションのバージョンをコミットハッシュで指定。

* remove-old-artifacts.ymlのバージョンをコミットハッシュで指定。

* check-openapi-generator-update.ymlのアクションのバージョンをコミットハッシュで指定。

* build-and-release-documents.ymlのアクションのバージョンをコミットハッシュで指定。

* lintエラーに対応。

* lintエラーに対応。

* azure/webapps-deployのバージョンを修正。

---------

Co-authored-by: Fumika Koyama <[email protected]>
  • Loading branch information
fkoyama and fkoyama authored Jan 6, 2025
1 parent 3cccc91 commit 59b89da
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-and-release-documents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
name: documents

- name: Githubのリリース
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
with:
files: ${{ env.DOCUMENT_ARTIFACTS_FILENAME }}
generate_release_notes: true
Expand All @@ -101,21 +101,21 @@ jobs:
name: documents

- name: Azure に OIDC Login
uses: azure/login@v2
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: ステージング環境へのデプロイ
uses: azure/webapps-deploy@v3
uses: azure/webapps-deploy@de617f46172a906d0617bb0e50d81e9e3aec24c8 # v3.0.1
with:
app-name: ${{ env.APP_ALESINFINY_MARIS_WEBAPP_NAME }}
slot-name: staging
package: "${{ env.DOCUMENT_ARTIFACTS_FILENAME }}"

- name: Teams への通知
uses: fjogeleit/http-request-action@v1
uses: fjogeleit/http-request-action@23ad54bcd1178fcff6a0d17538fa09de3a7f0a4d # v1.16.4
with:
url: ${{ secrets.ALESINFINY_POST_MESSAGE_TO_TEAMS_URL }}
method: POST
Expand All @@ -130,7 +130,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 本番環境への反映承認
uses: fjogeleit/http-request-action@v1
uses: fjogeleit/http-request-action@23ad54bcd1178fcff6a0d17538fa09de3a7f0a4d # v1.16.4
with:
url: ${{ secrets.ALESINFINY_APPROVE_REQUEST_TO_TEAMS_URL }}
method: POST
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-openapi-generator-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- name: GitHub API経由でリポジトリの情報を取得
id: get-repo-info-via-github-api
uses: fjogeleit/http-request-action@v1
uses: fjogeleit/http-request-action@23ad54bcd1178fcff6a0d17538fa09de3a7f0a4d # v1.16.4
with:
url: 'https://api.github.com/repos/OpenAPITools/openapi-generator/releases/latest'
method: 'GET'
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: issue を作成(Dressca-Consumer)
id: create-issue-consumer
if: ${{ steps.check-version-update.outputs.update-required-consumer == 'true' }}
uses: Wandalen/wretry.action@master
uses: Wandalen/wretry.action@ffdd254f4eaf1562b8a2c66aeaa37f1ff2231179 # v3.7.3
with:
action: dblock/create-a-github-issue@v3
with: |
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: issue を作成(Dressca-Admin)
id: create-issue-admin
if: ${{ steps.check-version-update.outputs.update-required-admin == 'true' }}
uses: Wandalen/wretry.action@master
uses: Wandalen/wretry.action@ffdd254f4eaf1562b8a2c66aeaa37f1ff2231179 # v3.7.3
with:
action: dblock/create-a-github-issue@v3
with: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-old-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

steps:
- name: 古いアーティファクトの削除
uses: c-hive/gha-remove-artifacts@v1
uses: c-hive/gha-remove-artifacts@44fc7acaf1b3d0987da0e8d4707a989d80e9554b # v1.4.0
with:
age: '{{ github.event.inputs.target }} days'
skip-tags: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/samples-azure-ad-b2c-auth-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
- id: create-test-result-report
name: テスト結果ページの作成
uses: dorny/test-reporter@v1
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
name: 'バックエンドのテスト結果'
Expand All @@ -169,7 +169,7 @@ jobs:
- id: create-coverage-report
name: コードカバレッジレポートの解析と作成
uses: danielpalme/ReportGenerator-GitHub-Action@v5
uses: danielpalme/ReportGenerator-GitHub-Action@c38c522d4b391c1b0da979cbb2e902c0a252a7dc # v5.4.3
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
reports: '**/TestResults/*/coverage.cobertura.xml'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples-console-app-with-di.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:

- id: create-test-result-report
name: テスト結果ページの作成
uses: dorny/test-reporter@v1
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
name: 'Test results'
Expand All @@ -85,7 +85,7 @@ jobs:
- id: create-coverage-report
name: コードカバレッジレポートの解析と作成
uses: danielpalme/ReportGenerator-GitHub-Action@v5
uses: danielpalme/ReportGenerator-GitHub-Action@c38c522d4b391c1b0da979cbb2e902c0a252a7dc # v5.4.3
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
reports: '**/TestResults/*/coverage.cobertura.xml'
Expand All @@ -102,7 +102,7 @@ jobs:
cat CoverageReport/SummaryGithub.md >> ${{ env.BUILD_SUMMARY_FILE }}
- name: ビルドサマリーをPull-requestに表示
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
if: ${{ github.event_name == 'pull_request' && (success() || (failure() && steps.run-tests.conclusion == 'failure')) }}
with:
recreate: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples-dressca-admin-backend.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- id: create-test-result-report
name: テスト結果ページの作成
uses: dorny/test-reporter@v1
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
name: 'Test results'
Expand All @@ -120,7 +120,7 @@ jobs:
- id: create-coverage-report
name: コードカバレッジレポートの解析と作成
uses: danielpalme/ReportGenerator-GitHub-Action@v5
uses: danielpalme/ReportGenerator-GitHub-Action@c38c522d4b391c1b0da979cbb2e902c0a252a7dc # v5.4.3
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
reports: '**/TestResults/*/coverage.cobertura.xml'
Expand All @@ -137,7 +137,7 @@ jobs:
cat CoverageReport/SummaryGithub.md >> ${{ env.BUILD_SUMMARY_FILE }}
- name: ビルドサマリーをPull-requestに表示
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
if: ${{ github.event_name == 'pull_request' && (success() || (failure() && steps.run-tests.conclusion == 'failure')) }}
with:
recreate: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/samples-dressca-consumer-backend.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
- id: create-test-result-report
name: テスト結果ページの作成
uses: dorny/test-reporter@v1
uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
name: 'Test results'
Expand All @@ -120,7 +120,7 @@ jobs:
- id: create-coverage-report
name: コードカバレッジレポートの解析と作成
uses: danielpalme/ReportGenerator-GitHub-Action@v5
uses: danielpalme/ReportGenerator-GitHub-Action@c38c522d4b391c1b0da979cbb2e902c0a252a7dc # v5.4.3
if: ${{ success() || (failure() && steps.run-tests.conclusion == 'failure') }}
with:
reports: '**/TestResults/*/coverage.cobertura.xml'
Expand All @@ -137,7 +137,7 @@ jobs:
cat CoverageReport/SummaryGithub.md >> ${{ env.BUILD_SUMMARY_FILE }}
- name: ビルドサマリーをPull-requestに表示
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2.9.0
if: ${{ github.event_name == 'pull_request' && (success() || (failure() && steps.run-tests.conclusion == 'failure')) }}
with:
recreate: true
Expand Down

0 comments on commit 59b89da

Please sign in to comment.