René's URL Explorer Experiment


Title: upload-sarif: token input doesn't work · Issue #2386 · github/codeql-action · GitHub

Open Graph Title: upload-sarif: token input doesn't work · Issue #2386 · github/codeql-action

X Title: upload-sarif: token input doesn't work · Issue #2386 · github/codeql-action

Description: I have this step in a workflow and it works: - name: "Upload Trivy scan results to GitHub Security tab" uses: github/codeql-action/upload-sarif@v3 with: sarif_file: '${{ env.trivy_output_file }}' category: 'trivy-image-${{ matrix.image }...

Open Graph Description: I have this step in a workflow and it works: - name: "Upload Trivy scan results to GitHub Security tab" uses: github/codeql-action/upload-sarif@v3 with: sarif_file: '${{ env.trivy_output_file }}' c...

X Description: I have this step in a workflow and it works: - name: "Upload Trivy scan results to GitHub Security tab" uses: github/codeql-action/upload-sarif@v3 with: sarif_file: '${{ env.trivy_out...

Opengraph URL: https://github.com/github/codeql-action/issues/2386

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"upload-sarif: token input doesn't work","articleBody":"I have this step in a workflow and it works:\r\n\r\n```yaml\r\n      - name: \"Upload Trivy scan results to GitHub Security tab\"\r\n        uses: github/codeql-action/upload-sarif@v3\r\n        with:\r\n          sarif_file: '${{ env.trivy_output_file }}'\r\n          category: 'trivy-image-${{ matrix.image }}'\r\n```\r\n\r\nbut it doesn't work if add the token argument:\r\n```yaml\r\n      - name: \"Upload Trivy scan results to GitHub Security tab\"\r\n        uses: github/codeql-action/upload-sarif@v3\r\n        with:\r\n          token: ${{ secrets.MY_TOKEN }}\r\n          sarif_file: '${{ env.trivy_output_file }}'\r\n          category: 'trivy-image-${{ matrix.image }}'\r\n```\r\n\r\nThis is the error:\r\n\r\n```bash\r\nUploading results\r\n  Processing sarif files: [\"trivy-test-yellow.sarif\"]\r\n  Validating trivy-test-yellow.sarif\r\n  Combining SARIF files using the CodeQL CLI\r\n  Adding fingerprints to SARIF file. For more information, see https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs\r\n  Uploading results\r\n  Warning: Not Found\r\n  Error: Not Found\r\n```\r\n\u003cdetails\u003e\r\n\u003csummary\u003eDebug\u003c/summary\u003e\r\n\r\n```bash\r\nUploading results\r\n  Processing sarif files: [\"trivy-test-yellow.sarif\"]\r\n  Validating trivy-test-yellow.sarif\r\n  Combining SARIF files using the CodeQL CLI\r\n  Adding fingerprints to SARIF file. For more information, see https://docs.github.com/en/enterprise-cloud@latest/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#providing-data-to-track-code-scanning-alerts-across-runs\r\n  ##[debug]Validating that each SARIF run has a unique category\r\n  ##[debug]Serializing SARIF for upload\r\n  ##[debug]Compressing serialized SARIF\r\n  ##[debug]Raw upload size: 542 bytes\r\n  ##[debug]Base64 zipped upload size: 472 bytes\r\n  ##[debug]Number of results in upload: 0\r\n  Uploading results\r\n  Warning: Not Found\r\n  Error: Not Found\r\n  ##[debug]Sending status report: {\"action_name\":\"upload-sarif\",\"action_oid\":\"unknown\",\"action_ref\":\"v3\",\"action_started_at\":\"2024-07-24T13:50:22.018Z\",\"action_version\":\"3.25.13\",\"analysis_key\":\".github/workflows/build new.yml:build\",\"commit_oid\":\"f26f5724a7c97d43f52ce8d4c9c0ed09b5eeba51\",\"first_party_analysis\":false,\"job_name\":\"build\",\"job_run_uuid\":\"\",\"ref\":\"refs/heads/main\",\"runner_os\":\"Linux\",\"started_at\":\"2024-07-24T13:50:22.018Z\",\"status\":\"failure\",\"steady_state_default_setup\":false,\"testing_environment\":\"\",\"workflow_name\":\"builed new\",\"workflow_run_attempt\":1,\"workflow_run_id\":100[77](https://github.com/my..repo.../actions/runs/10077937806/job/27861647308#step:9:78)937806,\"actions_event_name\":\"workflow_dispatch\",\"runner_available_disk_space_bytes\":21029244928,\"runner_total_disk_space_bytes\":7[78](https://github.com/my..repo.../actions/runs/10077937806/job/27861647308#step:9:79)51254784,\"cause\":\"Not Found\",\"exception\":\"HttpError: Not Found\\n    at /home/runner/work/_actions/github/codeql-action/v3/node_modules/@octokit/request/dist-node/index.js:86:21\\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\\n    at async requestWithGraphqlErrorHandling (/home/runner/work/_actions/github/codeql-action/v3/node_modules/@octokit/plugin-retry/dist-node/index.js:71:20)\\n    at async Job.doExecute (/home/runner/work/_actions/github/codeql-action/v3/node_modules/bottleneck/light.js:405:18)\",\"completed_at\":\"2024-07-24T13:50:22.[81](https://github.com/my..repo.../actions/runs/10077937806/job/27861647308#step:9:82)3Z\",\"matrix_vars\":\"{\\n  \\\"dockerfile\\\": \\\"Dockerfile-ok\\\",\\n  \\\"image\\\": \\\"test/yellow\\\"\\n}\",\"runner_arch\":\"X64\",\"runner_image_version\":\"20240721.1.0\"}\r\n  ##[debug]Node Action run completed with exit code 1\r\n  ##[debug]CODEQL_ACTION_FEATURE_MULTI_LANGUAGE='false'\r\n  ##[debug]CODEQL_ACTION_FEATURE_SANDWICH='false'\r\n  ##[debug]CODEQL_ACTION_FEATURE_SARIF_COMBINE='true'\r\n  ##[debug]CODEQL_ACTION_FEATURE_WILL_UPLOAD='true'\r\n  ##[debug]CODEQL_ACTION_VERSION='3.25.13'\r\n  ##[debug]CODEQL_ACTION_ANALYSIS_KEY='.github/workflows/build new.yml:build'\r\n  ##[debug]CODEQL_WORKFLOW_STARTED_AT='2024-07-24T13:50:22.018Z'\r\n  ##[debug]CODEQL_UPLOAD_SARIF_TRIVY_IMAGE_TEST_YELLOW__TRIVY='CODEQL_UPLOAD_SARIF_TRIVY_IMAGE_TEST_YELLOW__TRIVY'\r\n  ##[debug]CODEQL_ACTION_JOB_STATUS='JOB_STATUS_FAILURE'\r\n  ##[debug]Finishing: Upload Trivy scan results to GitHub Security tab\r\n```\r\n\r\n\u003c/details\u003e\r\n\r\nThe secret is properly configured. If I change the secret value, I got \"Bad credentials\". I created this step to check the token and it works:\r\n\r\n```yaml\r\n      - name: testing secrets\r\n        env: \r\n          MY_TOKEN: ${{ secrets.MY_TOKEN }}\r\n        run: |\r\n          REPOSITORY=\".../...\"\r\n\r\n          # Variables\r\n          BASE_URL=\"https://api.github.com/repos/$REPOSITORY/code-scanning\"\r\n\r\n          HEADERS=(\r\n            -H \"Accept: application/vnd.github+json\"\r\n            -H \"Authorization: Bearer $MY_TOKEN\"\r\n            -H \"X-GitHub-Api-Version: 2022-11-28\"\r\n          )\r\n\r\n          curl -Ls \\\r\n            -X GET \\\r\n            \"${HEADERS[@]}\" \\\r\n            \"$BASE_URL/analyses?per_page=1\"\r\n```\r\n","author":{"url":"https://github.com/jesus-linares","@type":"Person","name":"jesus-linares"},"datePublished":"2024-07-24T13:37:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/2386/codeql-action/issues/2386"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:75cf6501-2af5-db0a-64d8-553d3fe34caa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9D46:3AF9A7:54EF976:774B450:6A4FA496
html-safe-nonce0af06811e209e9ad34d0c0f1fb70fc0cae69c9cb82b00bf522df6eeb963f75f5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDQ2OjNBRjlBNzo1NEVGOTc2Ojc3NEI0NTA6NkE0RkE0OTYiLCJ2aXNpdG9yX2lkIjoiMzkxOTYzNDYzMjY4MTY5NDM1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace27e1047838f5041e6d9795e753d564cf3ac9b3d0356c1b77bc690d17d89c40a
hovercard-subject-tagissue:2427618959
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/2386/issue_layout
twitter:imagehttps://opengraph.githubassets.com/756d4f7ffbd5bf298a098c2d65bb641eb04e0245351cc2c8c72be5dae719a3ac/github/codeql-action/issues/2386
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/756d4f7ffbd5bf298a098c2d65bb641eb04e0245351cc2c8c72be5dae719a3ac/github/codeql-action/issues/2386
og:image:altI have this step in a workflow and it works: - name: "Upload Trivy scan results to GitHub Security tab" uses: github/codeql-action/upload-sarif@v3 with: sarif_file: '${{ env.trivy_output_file }}' c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejesus-linares
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/github/codeql-action git https://github.com/github/codeql-action.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id259445878
octolytics-dimension-repository_nwogithub/codeql-action
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id259445878
octolytics-dimension-repository_network_root_nwogithub/codeql-action
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/codeql-action/issues/2386#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fissues%2F2386
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcodeql-action%2Fissues%2F2386
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=github%2Fcodeql-action
Reloadhttps://github.com/github/codeql-action/issues/2386
Reloadhttps://github.com/github/codeql-action/issues/2386
Reloadhttps://github.com/github/codeql-action/issues/2386
Please reload this pagehttps://github.com/github/codeql-action/issues/2386
github https://github.com/github
codeql-actionhttps://github.com/github/codeql-action
Notifications https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Fork 471 https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Star 1.6k https://github.com/login?return_to=%2Fgithub%2Fcodeql-action
Code https://github.com/github/codeql-action
Issues 156 https://github.com/github/codeql-action/issues
Pull requests 29 https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality 2 https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
Code https://github.com/github/codeql-action
Issues https://github.com/github/codeql-action/issues
Pull requests https://github.com/github/codeql-action/pulls
Actions https://github.com/github/codeql-action/actions
Models https://github.com/github/codeql-action/models
Security and quality https://github.com/github/codeql-action/security
Insights https://github.com/github/codeql-action/pulse
upload-sarif: token input doesn't workhttps://github.com/github/codeql-action/issues/2386#top
questionFurther information is requestedhttps://github.com/github/codeql-action/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com/jesus-linares
jesus-linareshttps://github.com/jesus-linares
on Jul 24, 2024https://github.com/github/codeql-action/issues/2386#issue-2427618959
questionFurther information is requestedhttps://github.com/github/codeql-action/issues?q=state%3Aopen%20label%3A%22question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.