Skip to content

build(deps): bump actions/checkout from 2 to 6#439

Open
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/github_actions/dev/actions/checkout-6
Open

build(deps): bump actions/checkout from 2 to 6#439
dependabot[bot] wants to merge 1 commit into
devfrom
dependabot/github_actions/dev/actions/checkout-6

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 27, 2026

Bumps actions/checkout from 2 to 6.

Changelog

Sourced from actions/checkout's changelog.

Changelog

v6.0.2

v6.0.1

v6.0.0

v5.0.1

v5.0.0

v4.3.1

v4.3.0

v4.2.2

v4.2.1

v4.2.0

v4.1.7

v4.1.6

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Apr 27, 2026
@ManiruzzamanAkash ManiruzzamanAkash force-pushed the dependabot/github_actions/dev/actions/checkout-6 branch from 529b716 to 5bbe843 Compare May 14, 2026 03:53
Comment thread .storybook/main.ts
@@ -1,70 +1,70 @@
import type { StorybookConfig } from '@storybook/react-vite';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: Consider updating the configuration to enforce HTTP Strict Transport Security (HSTS) headers in your server settings if applicable.

Why: Implementing HSTS improves security by protecting against man-in-the-middle attacks, ensuring that user connections are only made over secure HTTPS connections.

How: If this is part of a server configuration for your application, ensure that HSTS headers are set by adding a header line in your server's configuration file, for example:

Strict-Transport-Security: max-age=63072000; includeSubDomains

Comment thread .storybook/main.ts
@@ -1,70 +1,70 @@
import type { StorybookConfig } from '@storybook/react-vite';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: Ensure the use of secure dependencies; specifically, verify the versions of Storybook and any other libraries to mitigate vulnerability risks.

Why: Security vulnerabilities in dependencies can potentially lead to data breaches or exploitation of your application. Regularly updating ensures that any vulnerabilities can be patched in accordance with the security advisories.

How: Review the changelog and security advisory for each dependency and ensure your project is referencing secure versions in your package configuration files.

Comment thread .storybook/main.ts
});
},
};
export default config;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: Refactor the way aliases are defined for better clarity and maintainability.

Why: Defining complex path resolutions and aliases in a single block can make it harder to manage as your project grows. It could lead to confusion and potential errors if paths change in the future.

How: Create a manage aliases function that returns your aliases. This can also clearly document what each alias is resolving to, like so:

function createAliases() {
  return {
    '@/icons': path.resolve(__dirname, '..', 'src/ui/icons.jsx'),
    '@/utilities': path.resolve(__dirname, '..', 'src/utilities'),
    '@/components': path.resolve(__dirname, '..', 'src/components'),
    '@': path.resolve(__dirname, '..', 'src')
  }; 
}
const aliases = createAliases();

Then use the aliases variable when setting your config.

Comment thread .storybook/main.ts
});
},
};
export default config;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: Consider revisiting plugin management to ensure that all used plugins are necessary.

Why: Loading unnecessary plugins can negatively impact your application's performance. Checking for and removing unused plugins can enhance loading time and execution efficiency.

How: Analyze the list of plugins currently in use. If any are not required for your application, remove them from the plugins array to streamline performance.

Comment thread .storybook/preview.tsx
@@ -1,30 +1,30 @@
import React from 'react';
import type { Preview } from '@storybook/react';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: The import statements have been modified with unnecessary new line characters inserted in the changes, this can lead to confusing diffs in versions control.

Why: Creating clear, coherent diffs helps maintain clarity in version control history. Avoiding such changes aids in readability and reduces confusion when reviewing logs or changes made in the repository.

How: Remove the extra newline characters after the import statements to maintain a clean and continuous flow of code. Ensure following the same conventions to keep consistency.

Comment thread .storybook/preview.tsx
],
};

export default preview;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: The decorators and parameters appear logical, but consider documenting their configuration, such as why certain rules are disabled or specific matchers are used.

Why: Documentation helps other developers (and your future self) understand the reasoning behind specific configurations, especially in collaborative environments. This is important for maintainability and troubleshooting.

How: Add comments above the configuration parts to briefly explain the purpose of the rules being disabled or matchers utilized in your parameters. This aids in later reviews or when onboarding new developers.

Comment thread .storybook/preview.tsx
color: /(background|color)$/i,
date: /Date$/i,
},
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: Consider using more descriptive classNames in the JSX of the decorators to increase the maintainability and readability of the code.

Why: Descriptive classNames improve the understanding of the content styling purpose at a glance, which can be particularly useful when developing larger components or making changes down the line.

How: Instead of using utility-first class styles directly, consider separating complex constructions into named CSS classes or maintaining a style guide that maps specific names to Tailwind utility groups.

Comment thread .storybook/test-runner.js
@@ -1,30 +1,30 @@
const { getStoryContext } = require('@storybook/test-runner');
const { injectAxe, checkA11y, configureAxe } = require('axe-playwright');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: The code is introducing new features related to accessibility testing, specifically concerning the configuration of Axe rules for the Storybook context, which is generally a good practice, but lacks explicit handling of potential errors that may arise during these asynchronous operations.

Why: Error handling is crucial in asynchronous programming, especially when interacting with external libraries like Axe. Failure to handle potential rejections from promises may lead to unhandled promise rejections which can crash the process and hinder debugging efforts.

How: Consider wrapping the asynchronous code in 'postVisit' within try-catch blocks. This allows for more graceful handling of issues, and logging error details for easier debugging. If there’s a need to continue execution even when certain actions fail, you can log the error and handle the failure appropriately.

Comment thread .storybook/test-runner.js
});

// Do not run a11y tests on disabled stories.
if (storyContext.parameters?.a11y?.disable) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What: The conditional checks for the accessibility testing configuration use optional chaining (?.). While this is a concise syntax, it may obscure errors if the expected object paths do not exist, which could lead to silent failures if not properly monitored.

Why: Using optional chaining without sufficient null checks can lead to missed critical errors during execution, which, depending on the setup of the accessibility parameters, could render the tests ineffective or cause unexpected behavior.

How: Consider validating the existence of the required properties and providing meaningful fallback values or logging if critical parameters are not set. This could help diagnose issues when the a11y testing configuration is not being applied as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants