Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/figma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,14 @@ jobs:
audit-figma-integrations:
name: Audit Figma Integrations
runs-on: ubuntu-latest
if: github.ref_name == 'master' && github.event_name == 'push'
if: github.event_name == 'workflow_dispatch' || (github.ref_name == 'master' && github.event_name == 'push')
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
Expand All @@ -122,4 +129,15 @@ jobs:
- name: Run Audit
env:
FIGMA_ACCESS_TOKEN: ${{ secrets.FIGMA_ACCESS_TOKEN }}
run: yarn audit-figma-integration
run: yarn audit-figma-integration --html
- name: Prepare Pages directory
run: find temp/ -name "figma-audit-*.html" -exec cp {} temp/index.html \;
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload audit report
uses: actions/upload-pages-artifact@v3
with:
path: temp/
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .percy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
storybook: {
// Useful for isolating Percy diffs when running from the command line
exclude: [
'Accessibility',
'Core Components/AccessibilityAnnouncer',
'Interactive/Table',
'Interactive/TabNavigation',
Expand Down
Loading
Loading