-
Notifications
You must be signed in to change notification settings - Fork 3
Pin dependencies #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ jobs: | |
| name: Clean up | ||
| runs-on: [ubuntu-latest] | ||
| steps: | ||
| - uses: actions/github-script@v7 | ||
| - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to other action updates, replace commit hash with a semantic version to increase the readability and maintainability of the workflow file. - uses: actions/github-script@v7 |
||
| with: | ||
| script: | | ||
| github.rest.git.deleteRef({ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ jobs: | |
| if: ${{ !startsWith(github.head_ref || github.ref_name, 'release/') }} | ||
| steps: | ||
| - name: Checkout source branch | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's cleaner to use a semantic version tag in - uses: actions/checkout@v4
- uses: actions/setup-node@v4 |
||
| with: | ||
| ref: ${{ env.SOURCE_BRANCH }} | ||
| path: source-folder | ||
|
|
@@ -28,7 +28,7 @@ jobs: | |
| git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
|
|
||
| - name: Setup Node (PR Summary) | ||
| uses: actions/setup-node@v4 | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||
| with: | ||
| node-version-file: source-folder/pr-summary/.node-version | ||
| cache: npm | ||
|
|
@@ -41,7 +41,7 @@ jobs: | |
| npm prune --omit=dev | ||
|
|
||
| - name: Setup Node (PR Review) | ||
| uses: actions/setup-node@v4 | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||
| with: | ||
| node-version-file: source-folder/pr-review/.node-version | ||
| cache: npm | ||
|
|
@@ -64,7 +64,7 @@ jobs: | |
| fi | ||
|
|
||
| - name: Checkout release branch | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
| with: | ||
| ref: ${{ env.RELEASE_BRANCH }} | ||
| path: release-folder | ||
|
|
@@ -97,7 +97,7 @@ jobs: | |
| if: ${{ github.ref_name != 'main' }} | ||
| steps: | ||
| - name: Checkout release branch | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
| with: | ||
| ref: ${{ env.RELEASE_BRANCH }} | ||
| - name: Run the AI-assisted action (PR Summary) | ||
|
|
@@ -122,7 +122,7 @@ jobs: | |
| if: ${{ github.ref_name == 'main' }} | ||
| steps: | ||
| - name: Checkout release branch | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
| with: | ||
| ref: ${{ env.RELEASE_BRANCH }} | ||
| - name: Create tags for new version | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,9 @@ jobs: | |
| path: [pr-summary, pr-review] | ||
| steps: | ||
| - name: Checkout source branch | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace the specific commit hash with a semantic version tag for both - uses: actions/checkout@v4
- uses: actions/setup-node@v4 |
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||
| with: | ||
| node-version: 18 | ||
| cache: npm | ||
|
|
@@ -41,9 +41,9 @@ jobs: | |
| path: [pr-summary, pr-review] | ||
| steps: | ||
| - name: Checkout source branch | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||
| with: | ||
| node-version: 18 | ||
| cache: npm | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using specific semantic version tags instead of commit hashes for dependencies like
pr-summaryandpr-review. This makes the code more readable and allows developers to easily understand which version is being used, improving maintainability and auditability. Use version tags likev3here unless there are critical reasons to pin to a specific commit.